Skip to content

Browse Text-to-Speech voices

Lists Soniox's shared Text-to-Speech voices for the current model. Filters can be combined, and every returned voice includes gender, age, accent, use-case, and style metadata. Follow NextPageCursor to continue through the catalog.

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
using var client = new SonioxClient(apiKey);

var response = await client.TtsModels.GetSharedVoicesAsync(
    model: SonioxClient.DefaultTtsModel,
    useCase: ["conversational"],
    style: ["warm"],
    limit: 20);

foreach (var voice in response.Voices)
{
}

if (response.NextPageCursor is { Length: > 0 } cursor)
{
    var nextPage = await client.TtsModels.GetSharedVoicesAsync(
        model: SonioxClient.DefaultTtsModel,
        useCase: ["conversational"],
        style: ["warm"],
        limit: 20,
        cursor: cursor);

}