3. Emkay in a browser
![]()
The idea
A web page today can do a surprising amount: run Python, use the microphone, store files, run small AI models. Emkay puts all of that together into a complete OpenVoiceOS that lives in one browser tab. No server thinks for it; the tab is the assistant.
That is also its limits: a web page may only talk to sites that allow it, it can't listen on the network, and it can't start programs. The rest of this chapter is about how Emkay works within those limits.
How it fits together
- The page is what you see: the face (ovos-gui-visage, unchanged, in a frame), the microphone and speaker, Emkay's own menus and the control panel.
- A Web Worker runs Python with Pyodide (Python
compiled to WebAssembly). In it run
ovos-corewith its pipeline and skills,ovos-gui, the audio side and the PHAL plugins – on the same bus as on any OVOS device. - Your files –
~/.configand~/.local, where OVOS keeps settings and installed skills – are kept in the browser's IndexedDB, so they survive a reload. The control panel's Backup page saves them to a file, in case the browser is cleared.
The first start downloads everything once (a couple of minutes on a PC, longer on a phone). After that Emkay starts from the browser's cache.
The defaults
A new Emkay starts like this, with no questions asked:
| Default | Can be changed to | |
|---|---|---|
| Language | the device's, if Emkay has it – else English | any of Emkay's twelve |
| Wake word | "Hey Emkay" (openWakeWord) | "Hey Mycroft" and others |
| Hears with | on the device: Whisper (for Danish: the Røst model; a light model on small devices) | the browser's own recognition, OpenVoiceOS' servers, the house |
| Speaks with | on the device: Piper (English: Alan) | the browser's own voices, OpenVoiceOS' servers, the house |
| Thinks | here on the device | Emkay Home, Home Assistant |
| Updates | skills installed in Emkay are kept up to date | off in the settings |
While a speech model downloads the first time, Emkay says so. It does not silently send your voice to a server meanwhile – it only uses OpenVoiceOS' servers if you choose them.
Skills Emkay comes with
The installer's ordinary OVOS skills (time, weather, timers and alarms, Wikipedia, jokes, volume … – listed in chapter 11), minus the few that can't work in a browser, plus Emkay's own choice:
![]()
– the exercise coach, three fairy-tale readers (Andersen, Grimm, 1001 Nights),
your own documents, karaoke and the jam band (with the MIDI synth), calculator,
unit converter, geography, geometry, Wikidata, the offline wiki, the calendar, lists and
schedules, Guardian, the home, the skill store, kiosk, About Emkay, auto volume, good manners and My
devices. The exact list is in
requirements/browser.txt.
Left out because a browser can't do them: DuckDuckGo and Wolfram Alpha (their servers don't allow web pages), speedtest, audio recording, IP address and a few that need the device itself. Wikidata and the offline wiki fill most of the gap.
How the browser differs from a device
Emkay works around the browser only where it has to. The most important places:
| The browser … | So Emkay … |
|---|---|
| can't start threads in Python | runs timers and waits on the browser's event loop; with JSPI (newer browsers) a skill can still wait for an answer – "for when?", quizzes, stop |
| has no native libraries | uses small pure-Python stand-ins (e.g. for rapidfuzz, tokenizers), checked against the real ones |
| would take minutes to train intents | trains them in GitHub Actions, one job per language; the device loads the result |
can't play http:// streams from an https page |
plays music in an <audio> element; stations without https say so and OCP tries the next |
| has no hardware plugin | gets ovos-phal-plugin-browser: volume, location, power, sensors, camera, kiosk, local only – answered exactly as a device's plugins answer |
| can't listen on a port | runs the control panel inside the worker, with a Service Worker as its network |
can't run pip |
installs pure-Python wheels from PyPI into ~/.local, through ovos-core's own installer |
| may only fetch from sites that allow it (CORS) | prefers sources that do – Wikisource for fairy tales, Wikidata for facts |
The full list, with the reasons, is in the emkay README.
Hearing and speaking
- The wake word runs in a worker of its own (onnxruntime-web). It is OVOS'
own setting –
listener.wake_wordandhotwordsinmycroft.conf– so the control panel changes it as on any device. "Hey Emkay" was trained with openWakeWord (hey-emkay-wakeword). - Speech to text is whatever STT plugin OVOS is set to. Emkay's are Whisper in the browser, with a model per language (stt-models – Danish uses the national Røst model), or the browser's own recognition.
- Speaking goes through ovos-audio's own steps: dialog transformers, the TTS plugin, TTS transformers – then the page plays the sound and moves the face's mouth.
- Microphone and speaker can be chosen in Emkay's menu and in the control panel.
Installing skills
Skills install the OVOS way – from the control panel's Skills page, or from the store (which hands the package to your Emkay and opens the panel at it). Emkay fetches pure-Python wheels from PyPI and SkillManager loads the skill at once. Half a minute after every start Emkay looks for newer releases of what was installed, and installs them.
Languages
Emkay ships the twelve OVOS languages with at least 80 % of the skills
translated. A phone downloads only what its language needs. Emkay's own few
words (start screen, menus) are in locale/,
one .dialog file per text, laid out like a skill so OVOS' translation tools
can read them.
Versions
app.emkay.ai is always the newest build of main.
About Emkay shows which one (Emkay 0.1.0 · build 123 · abc1234). Every
build is also published as one download, the release site, which is how
Emkay Home serves Emkay from the house.
Emkay runs OVOS' alpha channel, on purpose: Emkay helps test what comes next.
Different screens
Emkay fills whatever window it gets. For a screen that is Emkay's alone – a tablet on the wall, a phone by the bed, a Raspberry Pi with a screen – emkay-kiosk has a guide per system (iOS, Android, Windows, Linux), and the Emkay Capsule is a 3D-printable stand that makes a phone look like the round Mark II concept.
Repos: emkay · emkay-kiosk · emkay-capsule · hey-emkay-wakeword · stt-models