pub struct SynthesisInput {
pub custom_pronunciations: Option<CustomPronunciations>,
pub markup: Option<String>,
pub multi_speaker_markup: Option<MultiSpeakerMarkup>,
pub prompt: Option<String>,
pub ssml: Option<String>,
pub text: Option<String>,
}Expand description
Contains text input to be synthesized. Either text or ssml must be supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT. The input size is limited to 5000 bytes.
This type is not used in any activity, and only used as part of another schema.
Fields§
§custom_pronunciations: Option<CustomPronunciations>Optional. The pronunciation customizations are applied to the input. If this is set, the input is synthesized using the given pronunciation customizations. The initial support is for en-us, with plans to expand to other locales in the future. Instant Clone voices aren’t supported. In order to customize the pronunciation of a phrase, there must be an exact match of the phrase in the input types. If using SSML, the phrase must not be inside a phoneme tag.
markup: Option<String>Markup for Chirp 3: HD voices specifically. This field may not be used with any other voices.
multi_speaker_markup: Option<MultiSpeakerMarkup>The multi-speaker input to be synthesized. Only applicable for multi-speaker synthesis.
prompt: Option<String>This system instruction is supported only for controllable/promptable voice models. If this system instruction is used, we pass the unedited text to Gemini-TTS. Otherwise, a default system instruction is used. AI Studio calls this system instruction, Style Instructions.
ssml: Option<String>The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return google.rpc.Code.INVALID_ARGUMENT. For more information, see SSML.
text: Option<String>The raw text to be synthesized.
Trait Implementations§
Source§impl Clone for SynthesisInput
impl Clone for SynthesisInput
Source§fn clone(&self) -> SynthesisInput
fn clone(&self) -> SynthesisInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more