Guide
STConversationRunner Integration Checklist
Use this checklist when integrating STConversationRunner into an application. Items marked when applicable depend on the conversation and media features used.
Application setup
- ☐ Add the Andamento framework and required resources to the application target.
- ☐ Add
NSMicrophoneUsageDescriptionandNSSpeechRecognitionUsageDescriptionwhen requesting the corresponding permissions; provide clear user-facing explanations. - ☐ For a sandboxed macOS app that records audio, enable App Sandbox → Hardware → Audio Input.
- ☐ Request required permissions using requestMicrophonePermission and requestSpeechRecognitionPermission, and handle granted/denied outcomes.
Runner initialization and configuration
- ☐ Create a runner and call initialize before operations that require initialized state.
- ☐ Register the application's callback using setConversationCallback.
- ☐ Configure audio behavior with configureAudioEnvironment when applicable.
- ☐ Configure setResourceLocation and setLanguageFolder for file-based resources where appropriate. Default language folder:
en-US; file lookup can fall back to the parent directory. - ☐ Load any required synthesis aliases, phonemes, or Audio Resource to Text Mapping data.
- ☐ Load the required Prompt Modules and Conversation configuration, using either the (URL) or (JSON) overload as appropriate.
- ☐ Check each synchronous load result and do not enable Run when required loading fails.
Execution and callbacks
- ☐ Supply initial values using setRuntimeField where required; configuration references these as
$[FieldName]. - ☐ Call runConversation only after required configuration and resources are ready.
- ☐ Make time-sensitive callback decisions synchronously; for example, call setUserIntent during speech-recognition callback processing when immediate intent handling is needed.
- ☐ Handle completion, failure, interruption and stop through the relevant callbacks. An accepted asynchronous request is not proof of completion.
- ☐ Use stopConversation, pauseConversation, resumeConversation, and interruptConversation only in their supported lifecycle states.
Validation before release
- ☐ Test first-run permission prompts and denied permissions.
- ☐ Test missing or malformed configuration files and absent media resources.
- ☐ Test the default
en-USresource folder and parent-directory fallback for file-based resources. - ☐ Test normal completion, retry paths, user-intent transitions, interruption, stop, and repeat execution.
- ☐ Test barge-in and echo behavior on each supported platform and audio route if used.
- ☐ Review iOS background-audio restrictions if the app enables background behavior.
See Architecture, Configuration and Runtime, and Your First Conversation for context and examples.