A call in a language you are still learning has one fragile moment: the other person finishes a sentence, and you have a second or two to turn sound into meaning. Live subtitles are meant to carry you across that gap. Ours did — until the text on screen changed language in front of you.

You would see a line appear in Spanish, then watch it become English a moment later. Or the translation never arrived, and the Spanish stayed there looking like a failure. Or you changed one setting and the next sentence arrived in a different language altogether. None of those is a translation-quality problem. They are all trust problems, and trust is the whole product in a language-exchange app.

This update is about making the subtitle band calmer and more honest. One subtitle language is fixed for the call. A line that is still being translated says so instead of showing the spoken language first. A failed translation says it failed. Your own speech is hidden by default. And there is a new setting that makes recognition better without pretending the old model was the problem: the app now knows which language you are speaking.

What changed in live call subtitles

The band still shows the last two utterances, either Translated only (the default) or Original and translation. The difference is what happens while the translation is in flight:

  • “Translating…” instead of a language swap. In Translated only mode you no longer see the spoken language first and the translation second. You see a short pending line, then the translation. The line does not change language in front of you.
  • “Not translated” when the engine really could not answer. If every available engine fails, the band says so rather than leaving the original looking like a finished translation.
  • “Same language” when there was nothing to translate. If the speaker already used your language, the app labels it instead of silently showing one unchanged line.
  • One language for the whole call. The subtitle language is chosen when captioning starts—whether that is the profile language, the app language, or the call-local choice you picked. A profile load or an app-language change later in the call no longer moves it. The language picker is the only thing that changes it, and only for that call.
  • Your own words are hidden by default. The band is for following the other person. Settings → Language → Live subtitles → Show my own subtitles turns your side back on; the other person still receives your captions either way.
  • The controls live where language lives. The full setup is now Settings → Language → Live subtitles. Settings → Calls points there instead of mixing subtitle options with ring and video settings. The in-call globe sheet has two clear tabs: Translate into (what you read) and I’m speaking (what the recogniser should listen for).

That last pair is the important distinction. The language you read and the language you speak are not the same thing, and the old UI quietly assumed they were.

Why the old band looked broken

Three small implementation choices added up to a big trust problem.

First, the band rendered the recognised speech immediately and replaced it when the translation arrived. That is efficient: the user sees something at once. But in a language-exchange call it reads as a glitch. The subtitle “changed its mind”.

Second, the target language was resolved again for every caption. It followed the explicit subtitle choice, then the profile’s mother language, then the app’s UI language. If the profile finished loading a second after the call connected, or the app language changed, later captions could leave in a different direction than earlier ones. The call did not have a language; it had whatever the settings said at that moment.

Third, when the online translation engine was slow and the on-device fallback was off, the request failed and the original stayed on screen. Nothing told the reader whether the line was waiting, finished, or abandoned. In a chat you can scroll back and retry. In a call, the moment is gone.

None of these is exotic. They are the ordinary gaps between “the feature works” and “the feature is trustworthy”.

One call, one language

The fix starts with a small decision: a call is a context, and a context should not change underneath a sentence.

When captioning begins, the app resolves the reader’s subtitle language once and keeps it for the call. A late profile load no longer matters. An app-language change no longer matters. The language picker is an explicit user action, so it is allowed to re-resolve the language—but it does so once, clears the stale band, and discards translations that were already in flight for the previous language.

This is not only a bug fix. It is a statement about what a call is. If you are following a conversation in Spanish, the app should not start translating into English because you opened a settings page on another device. The call has a language until you say otherwise.

The language you are actually speaking

The other half of the problem is upstream: recognising the right words in the first place.

Short call chunks are hard for automatic language detection. A two-second “¿Cómo estás?” is not much evidence. A noisy café, a name, or a code-switched sentence makes it worse. When the recogniser guesses wrong, the translation is built on the wrong text, and no amount of later care fixes it.

The new I’m speaking setting gives the recogniser a hand. It has three honest choices:

  • My profile language (the default). If your profile says English, the recogniser is told to expect English.
  • Auto-detect. No hint at all, for people who switch languages mid-conversation or do not want a guess.
  • A specific language. For the common case where you are practising something other than your mother tongue—an English speaker spending an evening in Spanish, say.

The same preference is used in two places: live call captions and your own voice messages. It is deliberately not applied to messages other people send you; their language is theirs, and forcing your speaking language onto their recording would make their transcript worse. Received messages stay on auto-detect.

A wrong hint is worse than no hint, so unknown or unsupported languages omit it entirely rather than sending a guess. The picker only offers languages the recogniser can actually serve, plus auto-detect. If a stored choice is outside that set, the app falls back to detection instead of pretending.

When the transcript is wrong

Sometimes the audio is genuinely ambiguous, or the speaker really did switch languages. The app now has a correction path for voice messages: Transcribe in another language… in the message actions menu.

It opens a language picker, ignores the cached transcript, sends the chosen language, and replaces the stored result. That matters because the first transcript is often cached; a correction that silently returns the old text would be worse than no button at all. The action is available once a transcript exists, so it reads as a correction rather than a duplicate of the normal transcribe action.

For calls, the equivalent is the I’m speaking tab in the call language sheet. Change it mid-call and the next utterance is recognised with the new hint. You do not have to end the call to correct the input.

What we deliberately did not change

The obvious shortcut was to switch the speech-recognition service to a smaller, faster model. We did not.

A smaller model would make captions arrive sooner, but the quality drop lands hardest exactly where this app lives: non-English speech, accents, background noise, and short sentences with no context. It would also degrade every voice-message transcript, not just calls. The same service handles both, and voice notes are not latency-sensitive.

We also considered letting each request choose a model. On a small self-hosted server, loading and swapping another model costs more than the time it saves. The service keeps one model warm; the client sends a language hint instead.

The honest position is that the model is not the only lever. A stable target, a truthful pending state, a better hint, and a correction path fix the experience without trading away accuracy. The real latency ceiling belongs to a future fully on-device or streaming recogniser, and that is a separate project.

For developers

The implementation is mostly about separating three concepts that used to be one mutable value: the reader’s language, the speaker’s language, and the display state.

A snapshot, not a live setting

CaptionTargetSnapshot resolves the subtitle target once and keeps it for the session:

final targetName = _target.resolve(() {
  final override = babelLanguageByCode(callSubtitleTargetLangNotifier.value);
  return override?.name ?? translationTargetName();
});

It is reset on a new call, on re-enabling captions, and when the language sheet explicitly changes the language. A null result is not cached, so a profile that lands a moment later is picked up. The point is not “freeze every setting”; it is “a call is a session, and the reader’s language belongs to the session”.

An explicit display lifecycle

CallCaptionTranslationState now carries none, pending, translated, failed, and sameLanguage. The band uses it instead of inferring from translated == null:

  • Translated only shows a pending placeholder while the request is in flight.
  • A failure is labelled, not disguised as an original.
  • A source already in the reader’s language is labelled as such.
  • Own captions are filtered by visibleCallCaptions(captions, showOwn: ...), a pure function so the preference is testable without a widget.

A speaking-language hint, resolved safely

speakingLanguageNotifier stores an empty string for “follow the profile”, auto for “send no hint”, and a language name for an explicit choice. resolvedSpeakingLanguageName() resolves the profile fallback; speakingLanguageHint() maps it to an ISO-639-1 code.

The map is curated, not guessed. It starts from the on-device translation catalog and adds the languages the recogniser supports outside it—Kazakh, Javanese, Amharic, Serbian, and others. Languages with no recogniser model (Esperanto, for example) resolve to null, which means “let the service detect”. The picker iterates only the mapped names, so the UI cannot offer a code the service will reject.

For voice messages, the hint is sent only when the message is the current user’s:

final ownId = AuthService.backendUserIdNotifier.value;
final mine = ownId != null && vm.message.senderId.toString() == ownId;
final languageHint = mine ? speakingLanguageHint() : null;

Received messages pass null. The same hint is passed to the offline fallback’s lang parameter, which previously hardcoded auto.

On the service side

The transcription request accepts an optional language form field. It is validated as two or three lowercase letters, lowercased, and forwarded alongside the model. Anything malformed is dropped rather than rejected, because a hint is an optimisation: a bad hint must never turn a working transcription into a failed request.

Correcting a cached transcript

The “Transcribe in another language…” path passes an explicit hint and a force flag. The force flag skips both the server and offline caches; a successful re-run overwrites the stored transcription. A one-off correction must not be silently answered by the cache it is trying to replace.

Tests

The change is covered by a pure snapshot test, the caption display/lifecycle tests, speaking-language preference tests, the language-map and picker-list tests, a settings-sync round trip, and endpoint tests that assert the hint is forwarded and an invalid one is dropped. The UI compiles and was hot-restarted on a live Android dev session; the server path is unchanged except for the optional field.

What I would take to another app

Three lessons generalise:

  1. Snapshot the context, not every setting. A conversation, a call, or an editing session has a language, a target, and a mode. Resolve them once and let an explicit user action change them.
  2. Never show a placeholder you intend to replace without labelling it. Showing the source first and swapping it later is a reasonable optimisation that reads as a bug when the reader is trying to follow a sentence.
  3. A wrong hint is worse than none. If you cannot be confident about the speaker’s language, let the recogniser decide. The same rule applies to the UI: only offer choices the system can honour.

And the product one: separate what I read from what I speak. They are different questions, and merging them is how a language app ends up translating a conversation into the language the reader is still learning.

What would make a live subtitle feel trustworthy to you: the language never changing, a clear “translating” state, or a one-tap correction when the words are wrong?