SynthesizeSpeechOutput
¶
Source code in docs_src/capo_polly/types/synthesize_speech_output.py
audio_stream
instance-attribute
¶
audio_stream: AudioStream
Stream containing the synthesized speech.
content_type
instance-attribute
¶
content_type: NotRequired[ContentType]
Specifies the type audio stream. This should reflect the OutputFormat parameter in your request.
-
If you request
mp3as theOutputFormat, theContentTypereturned is audio/mpeg. -
If you request
ogg_vorbisas theOutputFormat, theContentTypereturned is audio/ogg. -
If you request
ogg_opusas theOutputFormat, theContentTypereturned is audio/ogg. -
If you request
pcmas theOutputFormat, theContentTypereturned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format. -
If you request
mu-lawas theOutputFormat, theContentTypereturned is audio/mulaw. -
If you request
a-lawas theOutputFormat, theContentTypereturned is audio/alaw. -
If you request
jsonas theOutputFormat, theContentTypereturned is application/x-json-stream.
request_characters
instance-attribute
¶
request_characters: RequestCharacters
Number of characters synthesized.