SpeechMetadata

class SpeechMetadata @JvmOverloads constructor(val speaker: String? = null, val style: String? = null)(source)

How the text of a TextPart is spoken when the model generates speech from it.

Constructors

Link copied to clipboard
constructor(speaker: String? = null, style: String? = null)

Properties

Link copied to clipboard

The speaker of the text, for a multi-speaker conversation.

Link copied to clipboard

How the text is spoken, for example "cheerfully".