Values.StartSpeechSynthesisStreamInputSourceSynthesizes 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. This operation serves as a bidirectional counterpart to SynthesizeSpeech: SynthesizeSpeech
type nonrec t = {engine : Engine.t;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.
*)languageCode : LanguageCode.t option;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 : LexiconNameList.t option;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 : OutputFormat.t;The audio format for the synthesized speech. Currently, Amazon Polly does not support JSON speech marks.
*)sampleRate : SampleRate.t option;The audio frequency, specified in Hz.
*)voiceId : VoiceId.t;The voice to use in synthesis. To get a list of available voice IDs, use the DescribeVoices operation.
*)actionStream : StartSpeechSynthesisStreamActionStream.t option;The input event stream that contains text events and stream control events.
*)}val make :
?languageCode:??? ->
?lexiconNames:??? ->
?sampleRate:??? ->
?actionStream:??? ->
engine:Engine.t ->
outputFormat:OutputFormat.t ->
voiceId:VoiceId.t ->
unit ->
tval of_header_and_body :
((string, SampleRate.t) Awso.Import.List.Assoc.t
* StartSpeechSynthesisStreamActionStream.t) ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `List of [> `String of LexiconName.t ] list
| `String of SampleRate.t
| `Structure of
(string
* [> `Structure of
(string
* [> `Enum of string
| `String of Text.t
| `Structure of (string * [> `Boolean of Force.t ]) list ])
list ])
list ])
list ]