SpeechTilesAndamento Docs
Get started
SDK Reference · Callback

conversationReceivedMediaEvent

Delivers a typed media event associated with a Conversation module.

func conversationReceivedMediaEvent(
    moduleID: String,
    event: STMediaEvent
)

STMediaEvent semantics are shared with STMediaRunner; this callback adds Conversation-module context.

Behavior

Forwards a typed STMediaEvent associated with the active conversation module. Interpret event types and payloads using the STMediaRunner event model.

Parameters

  • moduleID (String): Identifier of the conversation module associated with this callback.
  • event (STMediaEvent): Typed media event forwarded from the media framework.

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 conversationReceivedMediaEvent(
    moduleID: String, event: STMediaEvent
) {
    // Inspect event and its typed payload as needed for this module.
    print("Media event for \(moduleID): \(event)")
}

See Also