ovis icon indicating copy to clipboard operation
ovis copied to clipboard

Dictation: add Latin American Spanish (es-419 / es-MX) to the Dictation language list

Open NicoLeo13 opened this issue 1 week ago • 0 comments

Problem

The Dictation language setting (from #611) has exactly one Spanish option, es-ES (src/lib/settings.ts:42), so a Latin American speaker cannot ask for their own model from the setting. Two consequences:

  • Choosing Spanish from the dropdown means choosing Spain Spanish: recognition.lang = io.language().locale (src/lib/voice.ts:578) hands es-ES to the browser engine.
  • Auto does better than the list suggests — with Language set to System, dictationLocale (src/lib/voice.ts:223) passes the browser's own tag through, so es-AR stays es-AR — but it gives up as soon as the UI language is anything explicit. The UI is not translated into Spanish, and LOCALE_TAGS (src/lib/i18n.ts:20) only maps en, ko, ja, zh. So Language = English plus a Spanish browser means auto → en-US, and the dropdown's only Spanish repair is es-ES.

So the LatAm tag can arrive by accident through Auto, but it cannot be chosen: es-ES is the only Spanish entry in the list the dropdown is built from (src/components/SettingsDialog.tsx:800).

Proposal

Add Latin American Spanish to DICTATION_LANGUAGES. es-419 is the BCP-47 tag for the region as a whole; es-MX / es-US are the concrete tags platform recognizers most often carry. I do not know which of them Chrome's network recognizer accepts today, so the maintainers' pick is fine — the point is that there should be at least one LatAm option next to es-ES.

One note on the server path: it is unaffected in the sense that transcribeLanguage (src/lib/voice.ts:230) sends only the primary subtag to /api/voice/transcribe (languages[] = ["es", "en"]), so a LatAm tag would change the browser engine's model and nothing else. If the transcription engine ever takes the full tag, that function is where the region would be passed on.

Happy to test a branch: es-AR / es-MX browser, both engines.

NicoLeo13 avatar Nov 20 '26 14:11 NicoLeo13