Taktik Voice API docs

Getting started

Score English pronunciation at utterance, word and phoneme level with one HTTPS request. Send a WAV recording and the text that was read; get back a score for the whole sentence, each word and each phoneme, with timings.

Access

Requests need a token that we issue to you. Self-serve sign-up isn’t open yet: tell us what you’re building or email contact@taktikware.com and we’ll send one.

The basics

  • Base URL: https://api.taktikvoice.com
  • JSON over HTTPS. Requests are processed in the EU (AWS Ireland).
  • Authentication: Authorization: Bearer <token> (details).
  • Endpoint documented here: POST /service/pronunciation (guide, reference).

Quickstart

1. Get a token

Request a free API key. Store it in an environment variable on your server, e.g. TAKTIK_TOKEN.

2. Prepare the audio

The API takes a WAV file; 16-bit PCM, 16 kHz, mono is recommended (other sample rates and stereo are converted for you). Keep it to one sentence. If your recording is in another format, convert it first, for example with ffmpeg:

Shell
# Any input format → plain WAV: PCM 16-bit, 16 kHz, mono, no metadata chunks
ffmpeg -i input.m4a -ac 1 -ar 16000 -c:a pcm_s16le -map_metadata -1 -fflags +bitexact sample.wav

3. Send the request

Base64-encode the WAV file and send it with the text the speaker read:

# The JSON body is written to a file: long recordings don't fit in a shell argument.
printf '{"transcript":"Could you send the proposal by Thursday?","language":"us","audio_base64":"%s"}' \
  "$(base64 < sample.wav | tr -d '\n')" > body.json

curl -sS -X POST https://api.taktikvoice.com/service/pronunciation \
  -H "Authorization: Bearer $TAKTIK_TOKEN" \
  -H "Content-Type: application/json" \
  --data @body.json

4. Read the result

Every score is a number from 0 to 1. The response has an overall accuracy and a words list; each word has its own accuracy and a phonemes list where correct tells you whether each sound was pronounced as expected. See the response explained.

Want to see it working first? Try the live demo: it uses this same endpoint.

Next steps

What these docs cover

These docs describe the pronunciation assessment endpoint. Forced alignment, text-to-speech and the real-time voice tutor aren’t documented here yet; contact us if you need them.