Cloud Text-to-Speech API . voices

Instance Methods

close()

Close httplib2 connections.

list(languageCode=None, x__xgafv=None)

Returns a list of Voice supported for synthesis.

Method Details

close()
Close httplib2 connections.
list(languageCode=None, x__xgafv=None)
Returns a list of Voice supported for synthesis.

Args:
  languageCode: string, Optional. Recommended. [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If not specified, the API will return all supported voices. If specified, the ListVoices call will only return voices that can be used to synthesize this language_code. For example, if you specify `"en-NZ"`, all `"en-NZ"` voices will be returned. If you specify `"no"`, both `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be returned.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The message returned to the client by the `ListVoices` method.
  "voices": [ # The list of voices.
    { # Description of a voice supported by the TTS service.
      "languageCodes": [ # The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g. "en-US", "es-419", "cmn-tw").
        "A String",
      ],
      "name": "A String", # The name of this voice. Each distinct voice has a unique name.
      "naturalSampleRateHertz": 42, # The natural sample rate (in hertz) for this voice.
      "ssmlGender": "A String", # The gender of this voice.
    },
  ],
}