Synthesizes UTF-8 input, plain text, or SSML over a bidirectional streaming connection
Source:R/polly_operations.R
polly_start_speech_synthesis_stream.RdSynthesizes UTF-8 input, plain text, or SSML over a bidirectional streaming connection. Specify synthesis parameters in HTTP/2 headers, send text incrementally as events on the input stream, and receive synthesized audio as it becomes available.
See https://www.paws-r-sdk.com/docs/polly_start_speech_synthesis_stream/ for full documentation.
Usage
polly_start_speech_synthesis_stream(
Engine,
LanguageCode = NULL,
LexiconNames = NULL,
OutputFormat,
SampleRate = NULL,
VoiceId,
ActionStream = NULL
)Arguments
- Engine
[required] Specifies the engine for Amazon Polly to use when processing input text for speech synthesis. Currently, only the
generativeengine is supported. If you specify a voice that the selected engine doesn't support, Amazon Polly returns an error.- 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.
- LexiconNames
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.
- OutputFormat
[required] The audio format for the synthesized speech. Currently, Amazon Polly does not support JSON speech marks.
- SampleRate
The audio frequency, specified in Hz.
- VoiceId
[required] The voice to use in synthesis. To get a list of available voice IDs, use the
describe_voicesoperation.- ActionStream
The input event stream that contains text events and stream control events.