Module Values.StartSpeechSynthesisStreamInputSource

Synthesizes 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

Sourcetype nonrec t = {
  1. 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.

    *)
  2. 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.

    *)
  3. 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.

    *)
  4. outputFormat : OutputFormat.t;
    (*

    The audio format for the synthesized speech. Currently, Amazon Polly does not support JSON speech marks.

    *)
  5. sampleRate : SampleRate.t option;
    (*

    The audio frequency, specified in Hz.

    *)
  6. voiceId : VoiceId.t;
    (*

    The voice to use in synthesis. To get a list of available voice IDs, use the DescribeVoices operation.

    *)
  7. actionStream : StartSpeechSynthesisStreamActionStream.t option;
    (*

    The input event stream that contains text events and stream control events.

    *)
}
Sourceval context_ : string
Sourceval make : ?languageCode:??? -> ?lexiconNames:??? -> ?sampleRate:??? -> ?actionStream:??? -> engine:Engine.t -> outputFormat:OutputFormat.t -> voiceId:VoiceId.t -> unit -> t
Sourceval 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 ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t