SpeechTilesAndamento Docs
Get started
Guide

STConversationRunner Quick Start

Use STConversationRunner when SpeechTiles should execute a declarative Conversation.

let conversation = STConversationRunner()

guard conversation.initialize() == .success else {
    return
}

conversation.setLogLevel(.info)
_ = conversation.setConversationCallback(self)

_ = conversation.configureAudioEnvironment()
_ = conversation.setResourceLocation(.conversation, localURL: conversationURL)
_ = conversation.setResourceLocation(.playAudio, localURL: audioURL)
_ = conversation.setLanguageFolder("en-US")

_ = conversation.loadAudioPromptModules(from: "APM_Main.json")
_ = conversation.loadConversation(from: "Conversation_Main.json")

_ = conversation.setUserIntent("start")
_ = conversation.runConversation()

This example shows the runtime sequence, not a requirement that every application use the same resources. Permission requests, runtime fields, synthesis resources, and other configuration can be added as needed.

Next: read the STConversationRunner reference and the Conversation Configuration Reference.