StartSpeechSynthesisStreamInput
¶
Source code in docs_src/capo_polly/types/start_speech_synthesis_stream_input.py
action_stream
instance-attribute
¶
action_stream: NotRequired[StartSpeechSynthesisStreamActionStream]
The input event stream that contains text events and stream control events.
engine
instance-attribute
¶
engine: Engine
Specifies the engine for Amazon Polly to use when processing input text for speech synthesis. Currently, only the generative engine is supported. If you specify a voice that the selected engine doesn't support, Amazon Polly returns an error.
language_code
instance-attribute
¶
language_code: NotRequired[LanguageCode]
An optional parameter that sets the language code for the speech synthesis request. Specify this parameter only when using a bilingual voice. If a bilingual voice is used and no language code is specified, Amazon Polly uses the default language of the bilingual voice.
lexicon_names
instance-attribute
¶
lexicon_names: NotRequired[LexiconNameList]
The names of one or more pronunciation lexicons for the service to apply during synthesis. Amazon Polly applies lexicons only when the lexicon language matches the voice language.
output_format
instance-attribute
¶
output_format: OutputFormat
The audio format for the synthesized speech. Currently, Amazon Polly does not support JSON speech marks.
sample_rate
instance-attribute
¶
sample_rate: NotRequired[SampleRate]
The audio frequency, specified in Hz.
voice_id
instance-attribute
¶
voice_id: VoiceId
The voice to use in synthesis. To get a list of available voice IDs, use the DescribeVoices operation.