Skip to content

Voices

List available AI voices for phone calls.

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
using var client = new BlandAIClient(apiKey);

// List all available AI voices that can be used for phone calls.
// Each voice includes metadata like name, description, tags, and ratings.
var voices = await client.Voices.ListVoicesAsync();

Console.WriteLine($"Available voices: {voices.Count}");

foreach (var voice in voices)
{
    Console.WriteLine($"  Voice: {voice.Name} (ID: {voice.Id})");
    if (voice.Description is not null)
    {
        Console.WriteLine($"    Description: {voice.Description}");
    }
}