Docs
Build with Turkish speech
Two Turkish speech models, one API key. Alania turns text into speech; Duyu turns speech into text. Both work with the OpenAI client libraries: change base_url and you are done.
Products
Guides and reference for each product.
Models
The ids you put in model.
Examples
End-to-end projects you can copy and run.
Speech in a web appKeep your key on the server: a small route forwards the request to Alania and streams the audio back, and the browser starts playing on the first chunk.A phone line with TwilioAnswer a call, transcribe the caller live with Duyu and reply in Alania's voice. Audio stays 8 kHz μ-law both ways; nothing to resample.Live captions in the browserStream the microphone to Duyu and show the words as they are spoken:
partial drafts while someone talks, a settled final line when they pause.Narrating a long textTurn an article or a book chapter into one audio file: split the text into 5,000-character parts, ask for raw PCM, and write a single WAV.Subtitles for a videoPull the audio track out with ffmpeg, ask Duyu for srt, and attach the subtitles to the video.Base URLs
Every request goes over HTTPS or WSS; errors come back as JSON in the OpenAI shape.
Alania · REST
POST
https://voice.patientdesk.ai/v1/audio/speechAlania · WebSocket
WSS
wss://voice.patientdesk.ai/v1/audio/speech/streamDuyu · REST
POST
https://voice.patientdesk.ai/v1/audio/transcriptionsDuyu · WebSocket
WSS
wss://voice.patientdesk.ai/v1/audio/streamReference
- AuthenticationEvery request carries a key from your dashboard. The same key works for Alania and Duyu. Browser connections use short-lived tokens instead.
- Parameters referenceEvery field of the POST /v1/audio/speech body, with its default and range. Send JSON or multipart/form-data.
- Errors and limitsErrors follow the OpenAI shape: error.message, error.type, error.code. Temporary errors come with a Retry-After header.
- PricingAlania is billed per character and Duyu per audio hour, drawn from prepaid credit. The first month is free for the launch; prices exclude VAT.
- Service statusLive status, 90-day uptime and incident history.