Skip to main content

Returns

Returns a list of TtsVoice objects describing the voices a phone connection’s voice field may be set to. Each TtsVoice has the following fields:
id
string
The voice identifier to pass as the voice parameter on a phone connection (e.g., sarah).
name
string
Human-readable label (e.g., Sarah).
language_code
string
BCP-47 language tag the voice speaks (e.g., en-GB).
gender
string
female or male.
The current catalog (Speechmatics, English-only):
idNameLanguageGender
sarahSarahen-GBFemale
theoTheoen-GBMale
meganMeganen-USFemale
jackJacken-USMale
Leaving a phone connection’s voice empty/null uses the default voice (sarah).

Example

voices = galtea.phone_connections.list_voices()
# voices is a list of TtsVoice objects: id, name, language_code, gender
for voice in voices:
    print(f"{voice.id}: {voice.name} ({voice.language_code}, {voice.gender})")

Parameters

This method takes no parameters.