SpeechTiles Runtime Architecture
SpeechTiles Andamento separates application decisions, conversation orchestration, media execution, and declarative configuration. This separation allows an application to adopt direct media services without adopting a conversation flow, or to use a configured conversation with application-defined business logic.
Responsibilities and boundaries
- Application: owns its UI, business rules, permissions presentation, and the mapping of recognized speech to application intents; implements conversation callbacks.
- STConversationRunner: initializes and executes configured conversations, manages setRuntimeField values and setUserIntent transitions, and coordinates callbacks.
- STMediaRunner: exposes playback, recording, speech synthesis, speech recognition, and audio-environment capabilities directly.
- Configuration: Conversation configuration, Prompt Modules, and Audio Resource to Text Mapping describe behavior and resource associations.
How a configured conversation runs
The application initializes the runner, configures the relevant audio environment and permissions, and loads its conversation definition and any supporting prompt modules or mappings. The application then calls runConversation. During execution, the runtime coordinates media and emits callbacks so the application can supply data or make decisions at the appropriate point.
Runtime values are accessible in configuration using $[FieldName]. For example, a value set with setRuntimeField for CustomerName can be referenced as $[CustomerName]. A callback that supplies data needed immediately by the next step should update it before returning.
Execution and result semantics
Loading methods execute synchronously; check their results before starting a conversation. For asynchronous run or control requests, a successful return can mean the request was accepted, not that execution has completed. Observe conversation callbacks and media events for the eventual outcome. See Configuration and Runtime and Integration Checklist.
Choosing the integration boundary
Use STMediaRunner when your application directly controls media operations. Use STConversationRunner when you want reusable declarative flows with runtime fields, intent transitions, and orchestrated prompts. Start with Your First Conversation for an end-to-end example.