Firebase. AI. SpeechMetadata
Structured speech metadata associated with a ModelContent.TextPart.
Summary
Used to guide speech generation for a specific piece of text, such as identifying which speaker says it and the vocal style they should use.
Constructors and Destructors |
|
|---|---|
SpeechMetadata(string speaker, string style)
Create a new
SpeechMetadata object. |
Properties |
|
|---|---|
Speaker
|
readonly string
Identifies which speaker is speaking this turn.
|
Style
|
readonly string
A natural language description of the vocal style (such as "cheerful").
|
Properties
Speaker
readonly string Firebase::AI::SpeechMetadata::Speaker
Identifies which speaker is speaking this turn.
When using a MultiSpeakerVoiceConfig, this should match the SpeakerVoiceConfig.Speaker of one of the configured speakers.
Style
readonly string Firebase::AI::SpeechMetadata::Style
A natural language description of the vocal style (such as "cheerful").
Public functions
SpeechMetadata
Firebase::AI::SpeechMetadata::SpeechMetadata( string speaker, string style )
Create a new SpeechMetadata object.
| Details | |||||
|---|---|---|---|---|---|
| Parameters |
|