Premise
Dictation is widely regarded as solved, and for speech confined to a single language that verdict is mostly fair. The resolution stops at complex speech, where a single sentence can cross from one language into another, from one script into another, and from one reading direction into its opposite. A sentence of that kind demands of a transcript more than a list of its words. Standard dictation delivers only that list.
The lab works from the UAE, and this speech reaches it constantly. In professional talk there, an Arabic sentence often borrows an English term for the things that live in English, while the verbs and the rhythm stay Arabic and the vocabulary of work arrives in English. Emirati Arabic stands fully on its own as a language, and the mixing is a register speakers move in, not a rule they follow. Linguists call the phenomenon code-switching, and the Gulf has its own word for it, Arabizi (عربيزي), which folds Arabi and Inglizi into a single word, much as Arabic and English fold into a single sentence. Aloud this is entirely natural, and written down it falls apart.
Text was designed to hold one direction at a time, and the two languages run opposite ways: Arabic reads right to left, and English reads left to right. When a single line carries both, the text box that displays it must settle on one base direction, and it forces the other language through that choice, which is where the order of reading collapses. Punctuation then lands far from the sentence it belongs to, and a note that is perfectly clear aloud turns into work on the page.
This is the bidirectional text problem, and nearly any text editor can demonstrate it. Dictation inherits the whole of it: the words arrive accurately enough, and the box where they land undoes the way they were said.
The hard part of dictation comes after the words have been heard: rendering them exactly as they were said.
The lab looked for dictation that could carry this register. Wispr Flow was the one product it found operating at that level, and this register sits outside what that product targets, while everything else tested fell below daily use. The lab builds its research on complex speech and lives inside this problem, so it took the register as a research question of its own. Qalam, drawn from قلم, the Arabic word for pen, is the answer. It is dictation that renders Arabic and English as they were said, including sentences that cross between the two.
What Qalam is
Qalam is a dictation application whose core is a rendering engine. Transcription is purchased from a vendor, and the addition Qalam makes starts once the words are in: audio arrives through a browser microphone or a file, and the returned text reads as the speech was spoken. The application processes this in 4 stages, and the contribution sits in the final one, the rendering.
- Capture
- A browser microphone or an audio file, in the local web UI or the terminal.
- Transcribe
- ElevenLabs Scribe v2 returns the raw transcript of the mixed speech.
- Polish
- A language model owns this cleaning and layout work, removing the debris of speech and setting each line down according to the structure, and the default engine here is Gemini 3.1 Flash-Lite, with Claude Haiku 4.5 available for those who want a higher quality mode.
- Render
- Every line carries its own direction: Arabic lines right-aligned, English lines left-aligned, a short borrowed term riding inline in the line it belongs to.
Polish comes in 2 styles. As Spoken, the default, keeps every word in the language of the speech itself. One Language, the opt-in alternative, delivers the same note in a single language, for readers who need that. The script boundary holds in both directions, since Latin letters carry the English and Arabic letters carry the Arabic, and no word is ever spelled in the letters of the other.
The application runs on the user's machine, and its 2 cloud calls, one for transcription and one for polish, run under the user's own keys.
In practice
A dictation shows the full engine in action, as one spoken note crossing from Arabic into English passes through transcription, polish, and rendering. Everything the last stage contributes is visible there, since the words in the transcript and in the rendered note are the same ones, and the two differ only in how those words are shown.
In the transcript box, the note is forced into the single left-to-right direction that most text boxes impose. A sentence that begins in Arabic therefore enters from the wrong edge. Its English fragments break up the flow, and the closing full stop appears at the visual start of the very sentence it should end. The rendered note is different, because Qalam lays it out according to its own structure. The Arabic-first lines sit flush right, the substantial English statement takes its own line in its own direction, and short borrowed terms remain inline where they were said.
Benchmark
The benchmark consists of 100 clips, of which 92 are scoreable and come from the Mixat-tri test split, a corpus of podcasts in Emirati Arabic-English code-switching. A further 8 clips of podcast speech are read qualitatively rather than scored. ElevenLabs Scribe v2 provides the fixed transcription, and the 3 polish models each work from the same prompt, which makes the polish the only thing varying across runs. Scoring relies on PolyWER, a word error rate designed for code-switching speech, together with plain WER and CER, the word and character error rates. Every one of these is an error rate, so a smaller number is the better one throughout.
| Polisher | PolyWER ↓ | vs raw | Latency |
|---|---|---|---|
| raw transcript no polish | 0.1693 | ||
| claude-haiku-4-5 quality mode, opt-in | 0.1606 | −5.1% | 31.8 s |
| gemini-3.1-flash-lite shipped default | 0.1614 | −4.7% | 1.5 s |
| gemini-3.5-flash | 0.1640 | −3.1% | 7.2 s |
Polish helps where reading happens: relative to the raw transcript, PolyWER falls by 5.1% with Claude, by 4.7% with Flash-Lite, and by 3.1% with Flash, and character error drops by 5.9% on the best run. Plain WER moves the opposite way, worsening by 0.4% to 4.2% under polish, because the polish step restores glyphs, restores punctuation, and rewrites the text lightly, and a rewrite costs WER even when the result reads better. Because that is the shape of the trade-off, both directions are published here.
The default is chosen from what the table measures: which problem gets solved, and which one survives untouched. A raw transcript lets the problem survive. Speed applied to an unsolved problem buys nothing but a quick answer aimed at the wrong target, whereas the polished note returns in readable form. The default shipped matches the best score to within noise and needs 1.5 seconds for the work, a twentieth of Claude's 31.8. That difference is small enough to barely register on the single stage the user actually experiences. Gemini 3.1 Flash-Lite is therefore the default, and Claude Haiku 4.5 remains available as a quality mode.
What is left is 3 known ways for the rendering to fail around dense code-switching, accepted at this stage as trade-offs. The bet taken is that keeping the code-switch exactly as it was said, and rendering it correctly, matters more than covering every edge case on day one.
Get Qalam
Qalam is open source under Apache-2.0 and installs straight from GitHub: clone the repository, run it with uv, and bring your own ElevenLabs and Gemini or Claude keys. The web UI, the terminal client, and the benchmark harness ship together.