NowVoiceTranscriptMessage typealias - iOS

  • Release version: Australia
  • Updated July 14, 2026
  • 1 minute to read
  • Represents a single message in the voice session transcript.

    NowVoiceTranscriptMessage is a type alias for TranscriptMessage.

    Table 1. Properties
    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)")
    }