TranscriptMessage class - Android
Represents a single message in the voice session transcript.
TranscriptMessages are passed to NowVoiceCallbacks - onMessageReceived().
| Name | Type | Description |
|---|---|---|
| role | Role | The Role object identifies the originator of the message. Possible values:
|
| content | String | The text content of the message. |
The following code example shows TranscriptMessage used with NowVoiceCallbacks.
override fun onMessageReceived(message: TranscriptMessage) {
runOnUiThread { appendTranscript(message) }
}