POST
/
v1
/
speech
Python
import requests

url = "https://api.spi-tch.com/v1/synthesize"

payload = {
  "language": "en",
  "voice": "sade",
  "text": "<string>"
}
headers = {"Authorization": "Bearer YOUR_API_KEY"}

response = requests.post(url, json=payload)

with open("output.wav", "wb") as f:
    f.write(response.content)
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
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

Response

Successful Response

The response is of type file.