API ReferenceVoice
Turn a recording into text on this machine
The body is the recording itself (audio, or webm or mp4 video, at most 5 MB and 30 seconds), not JSON. A local Whisper model reads it; the audio is deleted when the call ends and only its SHA-256 is kept. The returned transcript_id goes to voiceTurn.
Authorization
consoleSession csrfToken clearwake_console<token>
Set by GET /console/api/session. HttpOnly, SameSite=Strict, 8 hours.
In: cookie
X-Clearwake-CSRF<token>
The csrf value from GET /console/api/session, an HMAC of the session id. Required on every POST.
In: header
The recording as it came from the browser.
body*file
The recorded audio bytes.
Format
binaryResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/console/api/voice/transcribe"{ "transcript": "string", "transcript_id": "string", "transcript_sha256": "string", "audio_sha256": "string", "audio_seconds": 0, "ms": 0, "model": "string", "label": "string"}