(require("watson-speech/text-to-speech/get-voices"))(options) → {Promise.<T>}
Returns a promise that resolves to an array of objects representing the available voices. Example:
[{
"name": "en-US_MichaelVoice",
"language": "en-US",
"customizable": true,
"gender": "male",
"url": "https://stream.watsonplatform.net/text-to-speech/api/v1/voices/en-US_MichaelVoice",
"description": "Michael: American English male voice."
},
//...
]Requires fetch (loading the top-level module automatically includes a pollyfill, but loading this sub-module directly doesn't.)
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
- Source:
- To Do:
-
- define format in @returns statement
Returns:
- Type
- Promise.<T>