Module Values.DescribeVoicesOutputSource

Returns the list of voices that are available for use when requesting speech synthesis. Each voice speaks a specified language, is either male or female, and is identified by an ID, which is the ASCII version of the voice name. When synthesizing speech ( SynthesizeSpeech ), you provide the voice ID for the voice you want from the list of voices returned by DescribeVoices. For example, you want your news reader application to read news in a specific language, but giving a user the option to choose the voice. Using the DescribeVoices operation you can provide the user with a list of available voices to select from. You can optionally specify a language code to filter the available voices. For example, if you specify en-US, the operation returns a list of all available US English voices. This operation requires permissions to perform the polly:DescribeVoices action.

Sourcetype nonrec t = {
  1. voices : VoiceList.t option;
    (*

    A list of voices with their properties.

    *)
  2. nextToken : NextToken.t option;
    (*

    The pagination token to use in the next request to continue the listing of voices. NextToken is returned only if the response is truncated.

    *)
}
Sourcetype nonrec error = [
  1. | `InvalidNextTokenException of InvalidNextTokenException.t
  2. | `ServiceFailureException of ServiceFailureException.t
  3. | `Unknown_operation_error of string * string option
]
Sourceval make : ?voices:??? -> ?nextToken:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InvalidNextTokenException of InvalidNextTokenException.t | `ServiceFailureException of ServiceFailureException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InvalidNextTokenException of InvalidNextTokenException.t | `ServiceFailureException of ServiceFailureException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Enum of string | `List of [> `Enum of string ] list | `String of LanguageName.t ]) list ] list | `String of NextToken.t ]) 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