SDK Reference · Callback
conversationDidSubmitAudioSegment
Reports an audio segment submitted for a Conversation module and prompt.
func conversationDidSubmitAudioSegment(
moduleID: String,
promptID: String,
audioSegment: STAudioSegment
)
Behavior
Reports a submitted STAudioSegment for the named module and prompt.
Parameters
moduleID(String): Identifier of the conversation module associated with this callback.promptID(String): Identifier of the audio prompt associated with this request or submission.audioSegment(STAudioSegment): The audio segment submitted for the identified prompt.
Timing and execution
When a runtime-field update or client decision must affect the framework immediately, perform it synchronously within this callback, before returning. UI updates that do not affect the immediate conversation decision can be dispatched separately.
Swift example
Implement this method in a class conforming to STConversationCallback. This focused example demonstrates the callback entry point; adapt application behavior to your own workflow.
public func conversationDidSubmitAudioSegment(
moduleID: String, promptID: String, audioSegment: STAudioSegment
) {
print("Submitted segment for \(moduleID), prompt \(promptID)")
}