TTS::Voice
Class methods
list(languageCode : String | Nil = "") : ListResponse
Returns a list of Voice supported for synthesis.
languageCode: Optional (but recommended) BCP-47 language tag. If specified, the voices.list call will only return voices that can be used to synthesize this languageCode. E.g. when specifying "en-NZ", you will get supported "en-" voices; when specifying "no", you will get supported "no-" (Norwegian) and "nb-" (Norwegian Bokmal) voices; specifying "zh" will also get supported "cmn-" voices; specifying "zh-hk" will also get supported "yue-*" voices.
Example:
TTS::Voice.list "es"
TTS::Voice.list