Implementation:Togethercomputer Together python Voices List
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Audio, Text_To_Speech |
| Last Updated | 2026-02-15 16:00 GMT |
Overview
Concrete tool for listing available TTS voices on the Together AI platform provided by the Together Python SDK.
Description
The Voices class provides a simple list() method that returns all available voice models and their voices. Each model entry includes the model name and an array of voice options. Both synchronous and asynchronous variants are provided.
Usage
Import this class when you need to discover available voices before creating speech. Access via client.audio.voices.list().
Code Reference
Source Location
- Repository: Together Python
- File: src/together/resources/audio/voices.py
- Lines: 1-65
Signature
class Voices:
def list(self) -> VoiceListResponse: ...
Import
from together import Together
client = Together()
# Access via client.audio.voices
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| (none) | No parameters required |
Outputs
| Name | Type | Description |
|---|---|---|
| returns | VoiceListResponse | Contains data: List[ModelVoices], each with model name and voices list |
Usage Examples
from together import Together
client = Together()
# List all available voices
voices = client.audio.voices.list()
for model_voices in voices.data:
print(f"\nModel: {model_voices.model}")
for voice in model_voices.voices:
print(f" - {voice['name']}")
Related Pages
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment