⚡ Phase XII Speech Engine · REST API v3.3

Build apps that understand Nigerian speech.

One clean HTTPS API for Yorùbá, Nigerian Pidgin, and Nigerian English transcription, structured intent extraction, multi-turn conversation, and speech synthesis.

STEP 01
Capture Voice
Record audio in your mobile app, web frontend, POS terminal, or WhatsApp webhook (.wav, .ogg, .mp3, .m4a).
STEP 02
POST to Voxira
Your backend forwards the audio to /api/v1/intent with your secret X-API-Key header.
STEP 03
Execute Your Logic
Receive clean text, detected language, structured JSON entities (amount, bank, topic), and a language-matched reply.
✨ Don’t have a key yet? Generate a Free Trial API Key (20 req/mo)

What You Can Build With Voxira

Pick a use case to inspect the exact headers and structured JSON output your app receives:

Base URL & Request Headers

Base URL: . Pass your secret key via the X-API-Key header on every call.

HeaderRequiredPurpose
X-API-KeyYesYour API key (vx_live_..., vx_test_...). Checked against SHA-256 hash in DB.
X-Session-IDOptionalUnique chat/user ID (e.g. wa_2348012...). Enables rolling 6-turn dialogue memory (30 min TTL).
X-Voxira-ReplyOptionalSet true to return a natural spoken reply in data.voxira_reply matching the speaker's exact language.
X-Voxira-Chunk-ModeOptionalSet stream to skip Gemini NLU and return Phase XII speech-to-text in ~1s (40 req/min chunk limit).
X-Voxira-Contribute-DataOptionalNDPR opt-in flag. Defaults to false — enterprise audio is processed in RAM and discarded immediately.

Voice-to-Intent & Conversational Agent

POST/api/v1/intent

Send a multipart/form-data audio file. Voxira runs GPU ASR, detects language, extracts structured intent/entities, and guards against banking/IoT hallucinations.


    

Fast Transcription Mode (Long Video / Call Center)

POST/api/v1/intentX-Voxira-Chunk-Mode: stream

For podcasts, interviews, lectures, or call analytics. Extract 16 kHz mono audio locally, split into 15–18s breath-pause chunks, and stream them for ~1s per-chunk transcription.


    

Text-to-Speech (Nigerian English & Yorùbá)

POST/api/v1/speak

Returns raw audio/mpeg (Edge Nigerian voices: female / male) or audio/wav (YarnGPT tonal Yorùbá: yoruba_female2 / yoruba_male2).

▶ Try /api/v1/speak Live With Your Key Above

    

Verify API Key & Check Monthly Quota

POST/api/v1/keys/verify

Check key validity, rate limits, and remaining monthly quota programmatically without consuming a request against your monthly quota.


    

Gateway Status & Pre-Warming

GET/api/v1/statusPOST/api/v1/warm

Poll /api/v1/status to see if the GPU worker is ready, warming, or cold.

Strict Language Mirroring

Voxira automatically detects the speaker's language in intent.entities.detected_language and mirrors it in voxira_reply:

Detected ValueSpeaker InputVoxira Reply & Recommended Voice
yorubaPure Yorùbá (e.g. "Ẹ káalẹ́, báwo ni?")100% pure tonal Yorùbá (Àmì Ohùn) → route to YarnGPT yoruba_female2 / yoruba_male2
englishPure English100% natural English → route to Edge female / male
pidginNigerian PidginNatural Nigerian Pidgin → route to Edge female / male
codeswitchMixed Yorùbá-English / PidginMatching Yorùbá-English code-switch

Structured Actions & Vertical Modules

ModuleSupported Actions
FinTechTRANSFER_FUNDS, CHECK_BALANCE, BLOCK_CARD, ACCOUNT_STATEMENT, FINANCIAL_PLANNING
EduTechTUTORING_AND_EXAM, TRANSLATION_PRACTICE, PLANNING_AND_REMINDER
Commerce / AgriTechCOMMERCE_AND_MARKET, GENERAL_INQUIRY
HealthTech / LifestyleHEALTH_AND_WELLNESS, TROUBLESHOOTING_HELP, CONVERSATION, GREETING
IoTTURN_ON_DEVICE, TURN_OFF_DEVICE

HTTP Status Codes & Error Handling

CodeCauseClient Action
401Missing, invalid, or revoked X-API-KeyCheck environment variable or mint a new key in Admin.
413Audio exceeds 50 MBExtract 16 kHz mono audio and chunk into 18s clips.
422Empty or corrupt audio fileVerify upload is > 512 bytes and valid audio.
429Per-minute rate limit, concurrency, or monthly quota reachedWait detail.retry_after_seconds or upgrade tier.
504Cold GPU container boot timed outRetry once after 5–10 seconds.