Your first request
Make a key, pick a voice, and turn a sentence into speech with one command.
- Who can do this
- Everyone
- Reading time
- 1 min read
-
1
Make a key
On API keys, press
Open API keysNew key. A test key (nv_test_…) answers every request for free with tones in place of a voice, which is ideal for wiring things up. A live key (nv_live_…) speaks with the real voices and spends credits. The key is shown once: copy it somewhere safe. -
2
Pick a voice
On Voices, play the samples and copy the ID of the voice you like. Every voice reads both English and Kiswahili.
Open Voices -
3
Send the text
Post the text to
/v1/text-to-speech/<voice id>with your key in thexi-api-keyheader. The answer is the audio, as MP3 unless you ask for another format.
The request
With curl, replacing the key and the voice ID with your own (the dashboard's home page shows this filled in for you):
curl -X POST "https://navoras.com/v1/text-to-speech/VOICE_ID" -H "xi-api-key: YOUR_KEY" -H "Content-Type: application/json" -d '{"text": "Karibu! Your order of KES 1,200 is on its way."}' --output hello.mp3
Open hello.mp3 and you'll hear "one thousand two hundred shillings", not letters and digits.
Still stuck?
A person at Navoras reads every message and replies by email. Name your workspace, and the request ID if it's about one.