API ReferenceVoice
Is speech to text available on this server
Reports whether the local speech model and ffmpeg are present, the recording limits and the intents the assistant understands. Typing always works.
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/console/api/voice/status"{ "stt": true, "model": "small.en", "ffmpeg": true, "model_present": true, "max_seconds": 30, "max_bytes": 5242880, "label": "speech to text: Whisper small.en on this machine (int8, CPU), no cloud service", "tts": "the browser's own speech synthesis on your device", "typing": true, "intents": [ "set_rules", "ask", "approve" ]}Confirm the rules that were read back POST
Signs and applies the rules last returned by `proposeRules` for the role. The hash must match the pending proposal; otherwise the call is refused with 409 and nothing changes.
Send one typed or spoken sentence, get one answer POST
Send either `text` or the `transcript_id` returned by `transcribeVoice`. The assistant answers a question from the records, proposes rules (then `needs_confirm` is true and a `token` is returned for `answerVoice`), or says it did not understand. The text shown is the text spoken.