SpeechTilesAndamento Docs
Get started
Guide

STMediaRunner Quick Start

Use STMediaRunner when the application wants direct control over SpeechTiles media capabilities rather than executing a declarative Conversation.

let media = STMediaRunner.shared

media.setLogLevel(.info)

guard media.initialize() == .success,
      media.initializeAudioPlayer() == .success else {
    return
}

let segment = STAudioSegment(
    source: .text("Hello from SpeechTiles")
)

_ = media.playAudio(
    "welcome",
    audioSegment: segment,
    audioPlayParams: nil
)

Playback is asynchronous. A successful playAudio return means the request was accepted; observe typed media events for runtime lifecycle and completion.

Next: read the STMediaRunner reference and Media Events.