Errors
Every error has a clear code and a request ID: bad audio (400), too large (413), busy (429), model unavailable or waited too long (503).
Whisper for transcription and Kokoro for natural voices, behind one API with a key, a queue limit and a cache. Built for work that can take a few seconds, like call recordings, voicemails and voice messages, not live phone conversations.
A made-up 24-second voicemail and a silent call, sent through an n8n form to the voice API, plus one request with no API key.
The voicemail was a note in the Google Sheet 7 seconds later, with its length and audio quality. The silent call saved nothing and pinged the team on Discord instead. The request without a key was turned away.
A typed reminder came back as a 6.6-second voice message. The same reminder again came straight from the cache.
The same rules I check in every health check, and how this system handles them.
Every error has a clear code and a request ID: bad audio (400), too large (413), busy (429), model unavailable or waited too long (503).
Callers retry 429 and 503 after a short wait, so a busy moment never loses a request.
An API key in the header on every request.
JSON logs for every request, plus timing headers on every response (synthesis time, cache hit).
Agencies whose clients take lots of calls: transcribe recordings and voicemails into the CRM, and make voice messages and reminders, on a server the client controls and without a per-minute bill.