NowVoiceTranscriptMessage typealias - iOS
Represents a single message in the voice session transcript.
NowVoiceTranscriptMessage is a type alias for TranscriptMessage.
| Name | Type | Description |
|---|---|---|
| role | String | The originator of the message. Typical values are "user" and "assistant". |
| text | String | The text content of the message. |
The following code example shows NowVoiceTranscriptMessage used with NowVoiceCallbacks.
onMessageReceived: { message in
print("[\(message.role)]: \(message.text)")
}