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:
| How | Best for | |
|---|---|---|
| File | POST /v1/stt: upload, get the transcript in the response | Recordings up to 30 minutes, interactive tools |
| Live | WS /v1/stt/stream: stream audio, get words as they're spoken | Calls, meetings, captions, voice input |
| Batch | POST /v1/stt/jobs: up to 50 files, processed in the background, with a webhook | Archives, backfills, nightly imports |
Models
| Model | Languages | Highlights |
|---|---|---|
wistfare-stt-v3-beta Default | rw en fr sw lg rn | Language detection for every sentence, speaker labels (up to 4), key terms, enhanced accuracy mode, punctuation toggle, choice of live latency |
wistfare-stt-v2-beta | rw sw en fr | Four languages in one model, automatic language detection |
wistfare-stt-v1-beta | rw | Our 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
| Code | Language | v3 | v2 | v1 |
|---|---|---|---|---|
auto | Detect automatically | ✓ | ✓ | ✓ |
rw | Kinyarwanda | ✓ | ✓ | ✓ |
en | English | ✓ | ✓ | — |
fr | French | ✓ | ✓ | — |
sw | Swahili | ✓ | ✓ | — |
lg | Luganda | ✓ | — | — |
rn | Kirundi | ✓ | — | — |
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 withstartandendin seconds and thelanguageof its sentence (shortened above).language: the recording's main language.speakeron words and segments:1…4withdiarize=true, otherwisenull. See Speaker labels.cost_centsandaudio_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
1to4. In recordings with more voices, the extra voices share those four labels. - Labels are per recording. Speaker
1is 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/sttand batch jobs with v3. Live sessions and the v1 and v2 models don't label speakers, sospeakerstaysnull. - 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
autowhen you don't know the language or when speakers mix languages. autois 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
wordsmessage 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
nyabugogoandNyabugogobehave 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
| Setting | What it does | When to use it |
|---|---|---|
enhanced=true (default) | Beam search fused with a per-language language model. Most accurate. | Files, by default. |
enhanced=false | Plain decoding: faster turnaround, slightly lower accuracy. | Large backfills where speed matters most. |
A specific language | Steers the model to one language. | You know what's spoken. |
| Key terms | Favours 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
| Limit | Value |
|---|---|
| File size | 128 MB per file |
| Duration | 0.1 s to 30 minutes per file |
| Formats | MP3, WAV, M4A, MP4, WEBM, OGG, FLAC, AAC (audio or video) |
| Key terms | 200 per file, 100 characters each; 100 per live session; best results with up to about 50 |
| Batch jobs | 50 files and 1 GB per job |
| Live sessions | 15 minutes of audio, 20 minutes of wall-clock time |
| Concurrent work | 4 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.