Module Values.StartSpeechSynthesisStreamOutputSource

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. eventStream : StartSpeechSynthesisStreamEventStream.t option;
    (*

    The output event stream that contains synthesized audio events and stream status events.

    *)
}
Sourcetype nonrec error = [
  1. | `ServiceFailureException of ServiceFailureException.t
  2. | `ServiceQuotaExceededException of ServiceQuotaExceededException.t
  3. | `ThrottlingException of ThrottlingException.t
  4. | `ValidationException of ValidationException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?eventStream:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `ServiceFailureException of ServiceFailureException.t | `ServiceQuotaExceededException of ServiceQuotaExceededException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `ServiceFailureException of ServiceFailureException.t | `ServiceQuotaExceededException of ServiceQuotaExceededException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval of_header_and_body : ('a * StartSpeechSynthesisStreamEventStream.t) -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Structure of (string * [> `Blob of AudioChunk.t | `Enum of string | `Integer of RequestCharacters.t | `List of [> `Structure of (string * [> `String of ValidationExceptionFieldName.t ]) list ] list | `String of ErrorMessage.t ]) 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