2. OpenVoiceOS in ten minutes

Everything in Emkay is OpenVoiceOS underneath. This chapter explains the few ideas that make OVOS tick, so the rest of the manual reads easily. If you already know OVOS, skip to chapter 3.

The bus: everyone talks in small messages

Picture a room where everyone can hear everyone. Nobody calls anybody directly – they say what happened or what they want, out loud, and whoever cares answers. That room is the message bus.

The message bus with the listener, speech to text, the pipeline and skills above it, and audio, the GUI, PHAL plugins and the control panel below

A message is a type (a name with dots) and some data:

{"type": "mycroft.volume.set", "data": {"percent": 0.6}}

A question is often answered on the same name with .response on the end: ovos.home.get → ovos.home.get.response. Almost everything in this manual – the home, the calendar, lending, local only – is in the end "which messages are sent, and who answers them". When a chapter has a box of message names, that is the contract: anything that sends or answers those messages can take part.

A question's trip

"Hey Emkay, what time is it?"

  1. The listener hears the wake word and records what you say.
  2. A speech-to-text (STT) plugin turns the recording into text.
  3. The pipeline asks, in order: who should answer this?
  4. A skill – here the date-and-time skill – answers with a sentence.
  5. A text-to-speech (TTS) plugin turns the sentence into sound, and the speaker plays it. The face moves its mouth.

Each step is a message on the bus, which is why Emkay can show you afterwards what just happened (chapter 4).

Skills

A skill is a small Python package that knows how to do one thing: tell the time, read a fairy tale, coach a workout. It has

Skills are installed with pip, like any Python package, and OVOS finds them by their entry point (opm.skill). Nothing is copied by hand.

There are a few kinds of skills, depending on how they get their questions:

Kind Answers Example
Intent skill sentences it knows "start a workout"
Common query questions anyone could answer – the best answer wins "who leads Denmark?" (Wikidata)
Fallback what nobody else understood the offline wiki
Media (OCP) "play …" – music, radio, podcasts radio, the news
Reading provider "read …", "tell me a story" Andersen, Grimm, your documents

Plugins

Plugins change how OVOS itself works. Skills do things for you; plugins give OVOS its ears, voice and hands.

Kind What it does Examples in Emkay
STT speech to text Whisper in the browser, the browser's own recognition
TTS text to speech Piper in the browser, the browser's own voices
Wake word hears "Hey Emkay" openWakeWord
PHAL the device: volume, sensors, network, power … the browser plugin, MIDI, peers, the home
Pipeline a step in "who should answer?" common reading, Home Assistant's Assist
Audio transformer listens to the sound before STT auto volume, overheard manners
Audio backend plays music and radio the browser's <audio>
Media provider finds music to play your local music, Music Assistant

The OVOS way: skills talk, PHAL plugins touch the device

This one rule shapes most of Emkay:

A skill never touches the hardware. It sends a message, and a PHAL plugin that knows the device answers it.

Example: "go full screen". The kiosk skill sends ovos.kiosk.fullscreen. In Emkay the browser plugin makes the page go full screen. On a Raspberry Pi another plugin could do it in its own way – the skill doesn't change. That is why Emkay's skills work on other OVOS devices, and why other devices can offer what Emkay offers.

mycroft.conf

OVOS keeps its configuration in mycroft.conf – JSON, in layers: the defaults, the system's, and the user's (~/.config/mycroft/mycroft.conf). The user's layer wins. The control panel edits it for you; Emkay sets its own defaults in a layer of its own, so your choices always win.

The control panel

ovos-control-panel is OVOS' web page for settings: language, voices, wake word, skills and their settings, logs. Skills and plugins can bring their own pages to it. Emkay uses the stock panel, in Emkay's colours – see chapter 5.

HiveMind

HiveMind lets a small device (a satellite) use an OVOS somewhere else as its brain: the satellite hears and speaks, the hub thinks. Emkay Home uses it – chapter 7.

Where to read more