Speech to text

Transcribe Kinyarwanda, English, French, Swahili, Luganda and Kirundi, with a language label on every sentence.

Wistfare speech to text turns recordings into punctuated text with word timings and the language of every sentence. One model follows speakers who switch between Kinyarwanda, English, French and Swahili mid-conversation. Send a file and get the transcript back in the response:

from wistfareai import WistfareAI

client = WistfareAI()  # reads WISTFARE_API_KEY

transcript = client.speech_to_text.convert(
    file="standup.m4a",
    model="wistfare-stt-v3-beta",
    language="auto",
    timestamps="word",
    key_terms=["Wistfare", "Nyabugogo", "MTN MoMo"],
    punctuation=True,
)

print(transcript.text)
for word in transcript.words:
    print(f"{word.start:7.2f}  {word.language}  {word.word}")

wistfare-stt-v3-beta and language=auto are the defaults everywhere; they're spelled out above for clarity.

The same models work three ways:

HowBest for
FilePOST /v1/stt: upload, get the transcript in the responseRecordings up to 30 minutes, interactive tools
LiveWS /v1/stt/stream: stream audio, get words as they're spokenCalls, meetings, captions, voice input
BatchPOST /v1/stt/jobs: up to 50 files, processed in the background, with a webhookArchives, backfills, nightly imports

Models

ModelLanguagesHighlights
wistfare-stt-v3-beta Defaultrw en fr sw lg rnLanguage detection for every sentence, speaker labels (up to 4), key terms, enhanced accuracy mode, punctuation toggle, choice of live latency
wistfare-stt-v2-betarw sw en frFour languages in one model, automatic language detection
wistfare-stt-v1-betarwOur original Kinyarwanda model

Files cost $0.006 per minute with v3 and $0.012 per minute with v1 or v2, minimum 2¢ per file. Live transcription costs $0.012 per minute on every model. See Pricing & billing.

v3 is the default

Every endpoint, the SDKs and the console use wistfare-stt-v3-beta with language=auto and diarize=false unless you say otherwise. Integrations that relied on the old default can keep it by sending model=wistfare-stt-v1-beta (and language=rw).

Supported languages

CodeLanguagev3v2v1
autoDetect automatically✓✓✓
rwKinyarwanda✓✓✓
enEnglish✓✓—
frFrench✓✓—
swSwahili✓✓—
lgLuganda✓——
rnKirundi✓——

lg and rn are accepted only with wistfare-stt-v3-beta; other models return 400 unsupported_language. wistfare-stt-v1-beta accepts the other codes for compatibility, but it's trained for Kinyarwanda.

What you get back

{
  "id": "tr_7c31be92a1f04d2e8b9c",
  "text": "Good morning everyone, welcome back. Uyu munsi turaganira ku mibare y'igihembwe.",
  "language": "rw",
  "model": "wistfare-stt-v3-beta",
  "audio_seconds": 5.71,
  "cost_cents": 2,
  "segments": [
    { "start": 0.24, "end": 2.6, "speaker": null, "language": "en", "text": "Good morning everyone, welcome back." },
    { "start": 2.62, "end": 5.38, "speaker": null, "language": "rw", "text": "Uyu munsi turaganira ku mibare y'igihembwe." }
  ],
  "words": [
    { "word": "Good", "start": 0.24, "end": 0.52, "speaker": null, "language": "en" },
    { "word": "morning", "start": 0.52, "end": 0.86, "speaker": null, "language": "en" }
  ],
  "source_name": "standup.m4a",
  "created_at": "2026-10-11T09:41:12Z"
}
  • text: the full, punctuated transcript.
  • segments: display-ready lines. A new segment starts after a sentence ends, after a pause longer than one second, or after 40 words.
  • words: every word with start and end in seconds and the language of its sentence (shortened above).
  • language: the recording's main language.
  • speaker on words and segments: 1 … 4 with diarize=true, otherwise null. See Speaker labels.
  • cost_cents and audio_seconds: what you were billed.

Word timings are approximate: accurate enough for captions, search and click-to-seek, but not for phoneme-level alignment. Every field is described in the API reference.

Speaker labels

Set diarize=true and wistfare-stt-v3-beta labels who is speaking: every word and segment gets a speaker number (1, 2, …) assigned in the order the voices first appear, and a new segment starts whenever the speaker changes.

transcript = client.speech_to_text.convert(file="interview.mp3", diarize=True)

for seg in transcript.segments:
    print(f"[{seg.start:7.2f}] {seg.speaker}: {seg.text}")
"segments": [
  { "start": 0.31, "end": 3.86, "speaker": 1, "language": "rw", "text": "Murakaza neza kuri iki kiganiro." },
  { "start": 4.2, "end": 7.95, "speaker": 2, "language": "rw", "text": "Murakoze cyane, nishimiye kuba ndi hano." }
]
  • Up to four speakers. Labels run from 1 to 4. In recordings with more voices, the extra voices share those four labels.
  • Labels are per recording. Speaker 1 is whoever spoke first in this file, not a recognised person; the same voice in another file may get a different label. To show names, map labels to people in your own UI.
  • Files and batch jobs. Speaker labels work on POST /v1/stt and batch jobs with v3. Live sessions and the v1 and v2 models don't label speakers, so speaker stays null.
  • Off by default. Labelling takes an extra pass over the audio; turn it on when you need who-said-what. It doesn't change the price.
  • Best on clear turn-taking: interviews, meetings, calls. Heavy cross-talk and very short interjections are harder to attribute.

Language detection and code-switching

With language=auto, wistfare-stt-v3-beta identifies the language of every sentence separately. Speakers who move between Kinyarwanda and English, or between French, Swahili and Kinyarwanda, are transcribed as spoken, with no translation and no forced single language.

  • Know the language? Set it. Naming the language steers the model towards it and usually improves accuracy, especially on short or noisy clips. Use auto when you don't know the language or when speakers mix languages.
  • auto is the default on every endpoint and in the SDKs.
  • v2 labels longer stretches of audio, v3 labels each sentence, and v1 doesn't label languages.
  • Live streams report it too. Each words message carries the most recently detected language.

To measure how much of a recording was in each language, add up segment durations:

from collections import Counter

mix = Counter()
for seg in transcript.segments:
    mix[seg.language] += seg.end - seg.start
total = sum(mix.values())
print({lang: f"{secs / total:.0%}" for lang, secs in mix.most_common()})
# {'rw': '54%', 'en': '46%'}

Key terms

Key terms (key_terms in the SDKs, boost over HTTP; v3 only) tell the model which words to listen for: people's names, places, product names, acronyms and jargon. The model favours these words: when it hears something close to a key term, it's more likely to write the key term. It's a nudge, not a guarantee.

key_terms=["Nyabugogo", "MTN MoMo", "Irembo", "Dr. Uwimana"]
  • Up to about 50 terms works best. The limits are 200 terms per file and 100 per live session, each up to 100 characters, but a short list of the terms that matter for this recording beats a large generic dictionary.
  • Casing doesn't matter. Lower-case, capitalised and title-case variants are generated for you, so nyabugogo and Nyabugogo behave the same. Write the spelling you'd like to see.
  • Don't add common words: they can start appearing where something similar was said.
  • Over HTTP, send one term per line or separate terms with commas. Duplicates are dropped, ignoring case.

Accuracy and speed

SettingWhat it doesWhen to use it
enhanced=true (default)Beam search fused with a per-language language model. Most accurate.Files, by default.
enhanced=falsePlain decoding: faster turnaround, slightly lower accuracy.Large backfills where speed matters most.
A specific languageSteers the model to one language.You know what's spoken.
Key termsFavours your vocabulary.Names, brands and jargon.
latency (live)Look-ahead of about 0.32, 0.56 or 1.12 s.Live only. See Latency.

enhanced applies to files and batch jobs; live streams always use fast decoding. None of these settings changes the price.

Audio quality matters more than any setting: a close microphone, little background noise and a sample rate of 16 kHz or more give the best results. You don't need to convert files; every upload is decoded and resampled on our side.

Punctuation and formatting

v3 returns punctuation and capitals by default. Set punctuation to false to get lower-case words without punctuation (apostrophes inside words are kept), which is handy for search indexes and keyword spotting.

Subtitles

segments map directly onto subtitle cues. The console's Speech to Text page exports SRT, VTT, plain text and JSON. To build an SRT file yourself:

def srt_time(t: float) -> str:
    ms = round(t * 1000)
    return f"{ms // 3_600_000:02}:{ms // 60_000 % 60:02}:{ms // 1000 % 60:02},{ms % 1000:03}"

with open("standup.srt", "w", encoding="utf-8") as out:
    for i, seg in enumerate(transcript.segments, start=1):
        out.write(f"{i}\n{srt_time(seg.start)} --> {srt_time(seg.end)}\n{seg.text}\n\n")

Limits

LimitValue
File size128 MB per file
Duration0.1 s to 30 minutes per file
FormatsMP3, WAV, M4A, MP4, WEBM, OGG, FLAC, AAC (audio or video)
Key terms200 per file, 100 characters each; 100 per live session; best results with up to about 50
Batch jobs50 files and 1 GB per job
Live sessions15 minutes of audio, 20 minutes of wall-clock time
Concurrent work4 file requests, 2 live sessions and 1 batch job at a time by default; see Account limits

Long recordings are cut at pauses into windows of up to 30 seconds and transcribed together, so interviews and meetings need no pre-processing.

Next steps

On this page