fix(desktop): let batch-only Soniqo models serve as the active transcription
fix(desktop): let batch-only Soniqo models serve as the active transcription
Problem
In 2.0, a batch-only Soniqo model (Parakeet Batch) can't be used as the transcription setting at all:
- The Start button for it is disabled with "Batch model loads when transcribing an audio file".
- Starting a recording while the saved choice points at
soniqo-parakeet-batchfails, because the local resolver asks the model service to open a live session, andLiveTranscriptionSession::startrejects batch-only models ("... does not support realtime transcription").
So the documented on-device path "batch transcription after recording" is unreachable as a selected provider: users who don't want live transcription (or prefer the batch model's quality and on-device speaker labels) have no way to record without live transcription, even though the listener already supports batch-mode captures (resolve_transcription_mode falls back to Batch for models without live support, and the lifecycle events already handle a batch capture).
Fix
ModelService::startreturns the local Soniqo endpoint without opening a realtime session for a batch-only Soniqo model. The model keeps loading in process when the actual batch transcription of the saved audio starts, which is exactly whatModelService::batchalready does for these models. This makes the capture resolver succeed, and the listener then resolves the capture toTranscriptionMode::Batchon its own.- Remove the disabled Start button for these models, so selecting them as the active transcription (via Manage local models) is possible again.
With this, a user can select Parakeet Batch, record without live transcription, and get the batch transcription (with on-device speaker labels) once the recording stops. Saved audio is still required: the existing retention guard ("This provider needs saved audio for batch transcription...") stays in place.
Notes
- Dictation with a batch-only model selected would still fail, since dictation is realtime. If that should keep the button disabled, a narrower fix would be to keep it enabled only for the capture flow.
- Tested locally: I don't have a full build set up on my machine, so this has not been compiled. Please run the desktop GPUI build.
Summary by cubic
Allows batch-only Soniqo models like Parakeet Batch to be selected as the active transcription, so recording works without live transcription and the model transcribes the saved audio after the recording stops.
ModelService::startreturns the local endpoint for batch-only Soniqo models without opening a realtime session; the model loads in process when the batch transcription starts.- Removes the disabled Start button state for these models, so they can be set as the active transcription choice.
- The existing guard that requires saved audio for batch transcription stays in place.
Dictation with a batch-only model selected still fails, since dictation is realtime.