Voice Design quickstart
This guide shows you how to design a voice via a text prompt using the Voice Design API.
This guide will show you how to design a voice via a prompt using the Voice Design API.
Using the Voice Design API
This guide assumes you have set up your API key and SDK. Complete the quickstart first if you haven’t. To play audio through your speakers, you may also need MPV and/or ffmpeg.
Make the API request
Designing a voice via a prompt has two steps:
- Generate previews based on a prompt.
- Select the best preview and use it to create a new voice.
We’ll start by generating previews based on a prompt.
Create a new file named example.py or example.mts, depending on your language of choice and add the following code: