Skip to main content
POST
/
v1
/
speech
Generate Speech
curl --request POST \
  --url https://api.spi-tch.com/v1/speech \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "legacy",
  "language": "yo",
  "text": "<string>",
  "voice": "sade",
  "format": "wav"
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

A request to generate speech in dataset.

Attributes: language: the language of the text to be generated text: the text for which audio is to be generated voice: the voice to use to generate the audio model: the model to use to generate the audio format: the output format of the audio file

language
enum<string>
required
Available options:
yo,
en,
ha,
ig,
am
text
string
required
voice
enum<string>
required
Available options:
sade,
segun,
femi,
funmi,
amina,
aliyu,
hasan,
zainab,
john,
jude,
lina,
lucy,
henry,
kani,
ngozi,
amara,
obinna,
ebuka,
hana,
selam,
tena,
tesfaye
model
enum<string> | null
default:legacy
Available options:
legacy
format
enum<string>
Available options:
wav,
mp3,
ogg_opus,
webm_opus,
flac,
pcm_s16le,
mulaw,
alaw

Response

Audio generated successfully. Returns the synthesized audio in the requested format (wav, mp3, etc.).

The response is of type file.

I