Skip to content
Dixi Voice

← Developers

API docs

Base: https://dixivoice.com. Send Authorization: Bearer YOUR_DIXI_KEY from your server. Each key is limited to its allowed site addresses, plan allowance and a per-minute rate limit. Languages: en, cy.

POST /api/v1/understand

The main endpoint: speech text in, structured understanding out. Stable versioned contract with documented error codes.

Body

{ "text": "Table for two Friday at 7", "language": "en", "context": { "page": "booking" }, "actions": ["book_table"] }

Returns

{ "intent": "book_table", "entities": {…}, "reply_text": "…", "confidence": 0.9, "action": "book_table", "id": "…", "needs_confirmation": true }

POST /api/v1/interpret

Turn what someone said into one allowed action, locked fields and a read-back. Nothing happens yet.

Body

{ "text": "Table for two Friday at 7", "language": "en", "actions": ["book_table"] }

Returns

{ "id": "…", "action": "book_table", "locked": {…}, "missing": [], "readback": "…", "needs_confirmation": true }

POST /api/v1/speak

Speak a read-back aloud. Returns audio.

Body

{ "text": "Table for two, Friday 7pm. Confirm?", "language": "en" }

Returns

audio/mpeg

GET /api/v1/pronounce

How to say a name. source is "native_recording" (a licensed recording by a person) or "synthetic_fallback" (a computer voice — may be wrong). reviewed is true only when a native speaker checked it. audio_url expires after 1 hour; don't store it. Counted as pronounce usage with a daily cap per key; spelling variants match. Sandbox keys cover a small sample set. 404 not_found when there is no recording and fallback is off.

Body

curl "https://dixivoice.com/api/v1/pronounce?text=Machynlleth&lang=cy" \
  -H "Authorization: Bearer YOUR_DIXI_KEY"

Returns

{ "text": "Machynlleth", "lang": "cy", "audio_url": "https://…(signed, 1h)", "phonetic": "ma-HUN-hleth", "ipa": null, "source": "native_recording", "reviewed": true }

POST /api/v1/confirm

The person said yes. Starts the undo window; counts as one voice action.

Body

{ "id": "…", "heard": "yes" }

Returns

{ "status": "confirmed", "undo_until": "…" }

POST /api/v1/undo

Undo within the window.

Body

{ "id": "…" }

Returns

{ "status": "undone" }

Errors: 400 bad request · 401 missing key · 402 allowance used · 403 wrong site or app · 429 too many requests.

Get API access →