This guide will show you how to design a voice via a prompt 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.
Designing a voice via a prompt has two steps:
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: