TranscriptMessage class - Android

concept brazil Updated Sep 10, 2026 1 min read TranscriptMsgAndroidClass.md
Raw file servicenow.com

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:

  • Role.Assistant: The message originated from the voice agent.
  • Role.User: The message originated from the app user.

content

String

The text content of the message.

The following code example shows TranscriptMessage used with NowVoiceCallbacks.
Text
override fun onMessageReceived(message: TranscriptMessage) {    runOnUiThread { appendTranscript(message) }}

Parent Topic:Mobile SDK - Android

Search documentation
Search document titles and file paths on the brazil branch