Vox API v1

Vox API is a My Speaking Score product.

Production base URL
https://vox.myspeakingscore.com

Use vox_live_ keys. Successful calls are billable.

Sandbox base URL
Available on request

Use vox_test_ keys. Never billed.

Authentication

Send your key as a Bearer token. Production keys start with vox_live_; sandbox keys start with vox_test_, only work against the sandbox host, and are never billed. Keep keys on your server only.

shell
curl https://vox.myspeakingscore.com/v1/health \
  -H "Authorization: Bearer vox_live_…"
javascript
const res = await fetch("https://vox.myspeakingscore.com/v1/health", {
  headers: { Authorization: `Bearer ${process.env.VOX_API_KEY}` },
});

Errors & limits

  • 401 missing, invalid or revoked key
  • 402 subscription inactive or payment failed
  • 429 rate limited — retry after the Retry-After header
  • 5xx server error — not billed, safe to retry with the same request

GET/v1/health

Check that the API is reachable and your key is valid. Not billed.

shell
curl https://vox.myspeakingscore.com/v1/health \
  -H "Authorization: Bearer $VOX_API_KEY"
response
{ "status": "ok", "environment": "production" }

POST/v1/curricula/record

Record a learner attempt against one of your curriculum items.

shell
curl https://vox.myspeakingscore.com/v1/curricula/record \
  -H "Authorization: Bearer $VOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"curriculum_id":"unit-4","item_id":"q2","learner_ref":"your-learner-123"}'
response
{ "request_id": "req_…", "recorded": true }

POST/v1/score/general

General-English speaking assessment for a single recording. JSON request body (not multipart). Send the recording as audio_b64: base64-encoded audio file contents, without a data-URL prefix. transcript is optional: when missing, empty or whitespace-only, Vox transcribes the recording; when non-blank, Vox uses it unchanged.

shell
# Audio only — Vox transcribes the recording
curl https://vox.myspeakingscore.com/v1/score/general \
  -H "Authorization: Bearer $VOX_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"audio_b64\":\"$(base64 < answer.wav | tr -d '\n')\"}"

# Audio plus a supplied transcript — used unchanged
curl https://vox.myspeakingscore.com/v1/score/general \
  -H "Authorization: Bearer $VOX_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"audio_b64\":\"$(base64 < answer.wav | tr -d '\n')\",\"transcript\":\"I grew up in a small town near the coast.\"}"
response
// Sample response excerpt (verified operational example, not the complete response)
{ "request_id": "req_example",
  "data": { "overall": 4.5, "fluency": 4.55, "grammar": 4.95, "pronunciation": 4.47, "vocabulary": 4.53 } }

Automatic transcription

  • Supports recordings of 1–60 seconds. This is the audio-only transcription limit, not a limit on requests that supply a transcript.
  • No audio MIME label is sent in the JSON request; supported audio is detected from its contents. Not every possible audio file is supported.
  • Invalid audio, unsupported duration, failed transcription or no reliable speech return an error — never language scores based on an empty transcript.

Audio-only errors

Known audio-only errors use {"detail":{"code":"..."}}:

  • 400 invalid_audio_b64, unsupported_format, audio_too_short
  • 413 audio_too_long, audio_too_large
  • 422 speech_required, no_reliable_speech
  • 503 audio_decoder_unavailable, transcription_not_configured, transcription_unavailable

Request-field validation can instead return FastAPI’s standard detail array, so not every error uses detail.code.

Notes

  • This route is for general-English assessment; it is not TOEFL Interview (see /v1/evaluate).
  • pronunciation here is a subscore, not the per-word IPA/phoneme feedback returned by pronunciation evaluation.
  • The /v1/evaluate replay and idempotency guarantees do not apply to this route.
  • This deployment adds transcription, not score calibration. Independent scoring accuracy and equivalence to ETS or MSS have not been established.

POST/v1/score/int

International exam-style band score with criteria breakdown.

shell
curl https://vox.myspeakingscore.com/v1/score/int \
  -H "Authorization: Bearer $VOX_API_KEY" \
  -F audio=@part2.wav \
  -F part=2
response
{ "request_id": "req_…", "band": 6.5, "criteria": { "fluency": 6, "lexical": 7, "grammar": 6, "pronunciation": 7 } }

POST/v1/pronunciation/analyze

Word and phoneme-level pronunciation feedback against a reference text.

shell
curl https://vox.myspeakingscore.com/v1/pronunciation/analyze \
  -H "Authorization: Bearer $VOX_API_KEY" \
  -F audio=@read.wav \
  -F reference_text="The weather is lovely today."
response
{ "request_id": "req_…", "accuracy": 0.86, "words": [{ "word": "weather", "score": 0.72, "phonemes": [ … ] }] }

POST/v1/evaluate

Pronunciation feedback: multipart audio (supported formats are detected automatically — no conversion, format selection or explicit MIME label needed; including WAV, MP3, M4A and WebM; 1 s minimum), mode=pronunciation, optional transcript, task_type, prompt, accent_target, learner_language. In pronunciation mode the prompt is the target text, and Vox does not transcribe. Sandbox calls (vox_test_ keys) are never billed. Limits: pronunciation 30 s / 10 MB, whole request 30 MB. Over-limit audio returns 413 audio_too_long or audio_too_large; bad input returns 400 (invalid_mode, missing_audio, unsupported_format, audio_too_short, invalid_field). Rejected requests are never billed. See the TOEFL Speaking (Interview) section below for mode=toefl_speaking.

shell
curl https://vox.myspeakingscore.com/v1/evaluate \
  -H "Authorization: Bearer $VOX_API_KEY" \
  -F audio=@answer.wav \
  -F prompt="three" \
  -F mode=pronunciation
response
{ "request_id": "req_…", "mode": "pronunciation",
  "pronunciation": { "status": "ok", "overall": 82, "accuracy": 0.9, "fluency": 0.8, "completeness": null,
    "words": [{ "word": "three", "score": 71.25, "ipa": ["θ", "r", "i"], "phonemes": [{ "target": "θ", "predicted": "s", "grade": "substitute", "score": 85 }, { "target": null, "predicted": "e", "grade": "insert", "score": 0 }, { "target": "r", "predicted": "r", "grade": "match", "score": 100 }, { "target": "i", "predicted": "i", "grade": "match", "score": 100 }] }] } }

Rendered pronunciation feedback

three/θ r i/score 71.25
θ → s · 85∅ → e · 0r → r · 100i → i · 100

POST/v1/evaluate · TOEFL Speaking — Interview

Required multipart fields: audio, mode=toefl_speaking and task_type=interview.

  • transcript is optional. When omitted or blank, Vox automatically transcribes the answer. Generated transcripts remain internal and are never included in the response.
  • prompt is the interview question. Optional but recommended: without it, Vox can assess the answer’s speech and language features but cannot assess whether it answers the question, and the topic-development heuristic is capped at 4/5.
  • Pronunciation analysis runs internally against the answer transcript — not the interview question — and supplies pronunciation-based scoring signals.
curl — audio + interview question
curl https://vox.myspeakingscore.com/v1/evaluate \
  -H "Authorization: Bearer $VOX_API_KEY" \
  -F audio=@answer.wav \
  -F mode=toefl_speaking \
  -F task_type=interview \
  -F prompt="Do you prefer to study alone or with others? Why?"
curl — audio without a question
curl https://vox.myspeakingscore.com/v1/evaluate \
  -H "Authorization: Bearer $VOX_API_KEY" \
  -F audio=@answer.wav \
  -F mode=toefl_speaking \
  -F task_type=interview
curl — audio + question + supplied transcript
curl https://vox.myspeakingscore.com/v1/evaluate \
  -H "Authorization: Bearer $VOX_API_KEY" \
  -F audio=@answer.wav \
  -F mode=toefl_speaking \
  -F task_type=interview \
  -F prompt="Do you prefer to study alone or with others? Why?" \
  -F transcript="I definitely prefer studying alone because I can focus better. For example, when I prepared for my last exam, I studied by myself every evening and it helped a lot."
curl — replay-safe request
curl https://vox.myspeakingscore.com/v1/evaluate \
  -H "Authorization: Bearer $VOX_API_KEY" \
  -H "Idempotency-Key: q8-example-001" \
  -F audio=@answer.wav \
  -F mode=toefl_speaking \
  -F task_type=interview \
  -F prompt="Do you prefer to study alone or with others? Why?"

Retries and idempotency

  • Idempotency-Key: use a unique key for each new evaluation. Reuse the same key with the same request when retrying after a timeout, lost connection or temporary server error. Keys are tenant-scoped.
  • Completed results: stored results replay for 24 hours from completion, returning the original request ID and response without additional usage.
  • Concurrent retries: only one request owns the evaluation; a duplicate briefly waits for completion. If the original is still processing, the duplicate returns HTTP 503 with {"error":"unavailable"} and Retry-After: 2 — wait two seconds and retry using the same key. The duplicate adds no usage.
  • Temporary failures: transient 502/503/504 responses are not cached — retry with the same key. Failed attempts consume 0 units. A successful evaluation consumes 1 usage unit; sandbox evaluations are non-billable. HTTP 501 not_implemented is a terminal response and may replay.
  • Lost connections and restarts: completed results and pending usage records survive restarts. A lost client connection does not cancel scoring already underway. An evaluation interrupted before its result is saved may need to run again; accepted usage remains deduplicated.
  • No key supplied: separate requests are independent evaluations; automatic deduplication is not provided.
response
{ "request_id": "req_example", "mode": "toefl_speaking",
  "toefl": { "status": "ok", "task": "interview", "unofficial": true,
    "response_score": 4.5, "task_score": 5, "section_score": 5.5,
    "criteria": { "intelligibility": 4.4, "language_use": 4.3, "topic_development": 5.0, "delivery_fluency": 4.9, "organization": 3.0 },
    "feedback": { "strengths": ["Answer develops the question with enough detail.", "Steady, natural speaking pace."], "improvements": ["Connect ideas with linking words such as \"because\" or \"for example\"."] },
    "total_words": 110, "wpm": 144.17, "audio_duration_sec": 45.78 } }

Delivery metrics (optional)

  • total_words — English word tokens ([a-z']+) in the answer transcript; not the question, not a whitespace count.
  • wpm — total_words ÷ audio_duration_sec × 60, rounded to two decimals.
  • audio_duration_sec — full recording length, including pauses and surrounding silence.
  • Automatic transcription may leave out fillers such as “um” and “uh”, so counts and pace can be lower than what was spoken. These metrics are not necessarily equivalent to My Speaking Score metrics.
  • The fields may be absent (for example in older responses); treat them as optional.

Eligibility

  • 20–60 seconds of audio; supported formats are detected automatically (including WAV, MP3, M4A and WebM) — no conversion or explicit MIME label needed; maximum 20 MB
  • At least 25 transcript words — Vox transcribes when you don’t supply one
  • Insufficient evidence returns not_implemented

Limitations

  • Scores are unofficial, uncalibrated heuristic estimates.
  • intelligibility is currently a pronunciation-based proxy.
  • language_use rules do not constitute a grammar assessment.
  • Task and section scores are estimates derived from one response, not completed-task or full-section assessments.
  • Other TOEFL tasks and IELTS return not_implemented.

Billing: a successful request counts as one evaluation, including transcription. Replays add no usage (see Retries and idempotency above). Transcription failures return scoring_unavailable and are not billed.

Pronunciation mode is documented separately above: there the prompt is the target text, and Vox does not transcribe.