Skip to content

List voices

List ready-to-use voices and pick one that supports both sync and streaming TTS.

This example assumes using ResembleAI; is in scope and apiKey contains your ResembleAI API key.

1
2
3
4
5
6
7
using var client = new ResembleAIClient(apiKey);

// Fetch the first page of available voices from the management API.
var voices = await client.SubpackageVoices.ListVoicesAsync(page: 1, pageSize: 10);
var selectedVoice = await GetReadyVoiceAsync(client);

Console.WriteLine($"Selected voice: {selectedVoice.Name} ({selectedVoice.Uuid})");