Skip to content

Alania · TTS

Migrating from Alania-1

Alania-2 is now the default model. Requests that name no model reach Alania-2. To stay on Alania-1, send model: "alania-v1".

What changed

alania-v1alania-v2
DefaultNo (legacy)Yes
Sample rate24 kHz48 kHz
Voicesalaniaalania2-f1, alania2-m1
Style, design, cloningNoYes
temperature0–2.0, default 0.300.1–2.0, default 1.0
top_p · cfgtop_pcfg
PricePer characterPer character, the same

Where your request goes

You sendNow
No model, no voiceAlania-2, alania2-f1, 48 kHz
No model, voice: "alania"Alania-2, alania2-f1, 48 kHz
No model, voice: "alania-v1"Alania-1, unchanged
model: "alania-v1"Alania-1, unchanged
model: "tts-1" (OpenAI names)Alania-2

Staying on Alania-1

curl https://voice.patientdesk.ai/v1/audio/speech \
  -H "Authorization: Bearer pd_live_..." \
  -H "Content-Type: application/json" \
  -d '{ "model": "alania-v1", "input": "Merhaba, randevunuz onaylandı.", "voice": "alania" }' \
  --output merhaba-v1.wav   # audio/wav, 24 kHz mono

On a WebSocket, open the connection with ?model=alania-v1, or add model: "alania-v1" to each speak message.

Moving to Alania-2

  1. Send model: "alania-v2" and pick a voice: alania2-f1 or alania2-m1.
  2. Make your player ready for 48 kHz; read the rate from the response.
  3. If you send temperature, retune it: Alania-2's default is 1.0. top_p no longer has an effect.
  4. Optionally add style instructions.