Endpoints
Voices
The voices speech synthesis accepts today. Read the list at start-up rather than hard-coding it.
GET
https://api.ana-yurt.dev/v1/audio/voicesNo key needed. Limited to 120 requests per minute per IP address.
#Current voices
| id | Voice | Language |
|---|---|---|
servin | Male, adult | Crimean Tatar |
sevil | Female, adult | Crimean Tatar |
Both voices read Latin and Cyrillic input.
#Response
| Field | Type | Description |
|---|---|---|
available | boolean | Whether speech synthesis is offered. Check status for whether it is up right now. |
voices[].id | string | Value for the voice field of POST /v1/audio/speech. |
voices[].name | string | Display name. |
voices[].language | string | Always crh (Crimean Tatar). |
curl https://api.ana-yurt.dev/v1/audio/voices{
"available": true,
"voices": [
{ "id": "servin", "name": "Servin (male)", "language": "crh" },
{ "id": "sevil", "name": "Sevil (female)", "language": "crh" }
]
}