list_voices
Signature:
Speech.list_voices() -> list[dict[str, Any]]
Description:
Get list of available voices.
Parameters:
No parameters.
Returns:
list[dict[str, Any]]
Fields included in each voice item in the returned list:
Field | Type | Description |
|---|---|---|
|
| Voice ID |
|
| Voice name |
|
| Voice gender identifier |
|
| List of supported voice capabilities; refer to the table below for the values. |
Possible values for capabilities:
Value | Description |
|---|---|
| Voice conversation voices available for |
| Speech synthesis voices available for |
Raises:
None.
Example:
from boosteros.brain import Speech
from boosteros.robots.booster import BoosterRobot
robot = BoosterRobot()
speech = Speech(robot)
for voice in speech.list_voices():
print(voice["id"], voice["capabilities"])
# Example output: warm_ahu ['chat']