Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ovos-stt-plugin-whisper-browser

An OpenVoiceOS speech-to-text plugin that runs OpenAI's Whisper on the device itself, in the browser. The recording never leaves the device: only the model is downloaded, once, the first time it is used.

It was made for Emkay, OpenVoiceOS in the browser (Pyodide), as its offline speech recognition. It takes the place of ovos-stt-plugin-fasterwhisper and whispercpp, whose native code cannot be installed in a browser.

How it works

The plugin hands the recording to the host page's Whisper engine and gets the text back. In Emkay that is web/whisper.js, in the same Web Worker as OVOS:

  • transformers.js (Apache-2.0), which does what a device's Whisper plugin does: log-mel features, the encoder, decoding with Whisper's tokenizer
  • onnxruntime-web, on WebGPU where the browser has it, else WebAssembly
  • the model, in ONNX from onnx-community on Hugging Face, kept in the browser's cache after the first download

Until the model has downloaded, the plugin raises, and the host transcribes with stt.fallback_module meanwhile (Emkay does, as ovos-dinkum-listener does), so the first question is never lost.

A host provides, as a global the worker's Python can reach (js):

emkayWhisper.ready(model)                        // Promise<bool>: starts loading; true once loaded
emkayWhisper.transcribe(pcm16, rate, lang, model) // Promise<string>

Configuration

{
  "stt": {
    "module": "ovos-stt-plugin-whisper-browser",
    "fallback_module": "ovos-stt-plugin-server",
    "ovos-stt-plugin-whisper-browser": {}
  }
}

While the model downloads the first time, the plugin fails so fallback_module hears you. With "wait_for_download": true it waits for the model instead; for when there is no network to fall back on (Emkay's "local only" mode sets it).

The model follows the language, as Piper's voice does: a language with a model of its own that does better uses that one (MODELS), every other language the multilingual onnx-community/whisper-base.

language model download
English onnx-community/whisper-base.en (English-only: better and faster) ~140 MB
Danish emkay-voice/roest-wav2vec2-315m-onnx (Røst from CoRal, trained on Danish speech) ~320 MB
others onnx-community/whisper-base ~140 MB

Whisper learned the big languages from tens of thousands of hours each, but a small language from a few hundred, and a model small enough for a phone does not learn a language well from that: whisper-base gets about two Danish words in three wrong. Many countries have trained models of their own on national data, and those can do much better. Danish uses Røst, which is not Whisper but a wav2vec2 model; the host runs it the same way. The tests behind the choice, and how to add a language with a national model, are in emkay-voice/stt-models.

Røst's license (adapted from OpenRAIL-M) allows commercial use but forbids using it for speech synthesis and biometric identification.

Light models

A big model can be too much for a device with little memory: Røst closed the tab on a tablet with 4 GB. With "light": true a language that has a smaller model uses that one instead (LIGHT_MODELS); the others keep theirs. The host decides for the device (Emkay: from the memory the browser reports), and the user can change it.

language light model download
Danish emkay-voice/alvenir-wav2vec2-base-da-onnx (Alvenir's wav2vec2 base, trained on Danish speech, Apache-2.0) ~95 MB

On Danish commands it gets 34.5% of the words wrong, Røst 29.3% and whisper-base 62.1%, at a third of Røst's memory (stt-models).

model in the config sets one model for every language instead, any speech recognition model in ONNX for transformers.js, for instance onnx-community/whisper-tiny (~65 MB, faster, less accurate) or onnx-community/whisper-small (~510 MB, more accurate, slow without WebGPU).

(The encoder is kept at full precision, since it loses too much at 8 bit; the decoder is 8-bit.)

On a phone without WebGPU, expect a few seconds per sentence with tiny or base. Whisper knows about 100 languages; available_languages lists them.

In the control panel the plugin has a page under Voice: the model, light and wait_for_download, saved in the section above, and whether it is the listener in use (controlpanel.json).

License

Apache-2.0

Metadata

Release files for ovos-stt-plugin-whisper-browser 0.1.0a8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ovos-stt-plugin-whisper-browser 0.1.0a8
File Size Uploaded Provenance Actions
ovos_stt_plugin_whisper_browser-0.1.0a8.tar.gz 17.3 kB With provenance Details for ovos_stt_plugin_whisper_browser-0.1.0a8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ovos-stt-plugin-whisper-browser 0.1.0a8
File Interpreter ABI Platform Actions
ovos_stt_plugin_whisper_browser-0.1.0a8-py3-none-any.whl Python 3 none any Details for ovos_stt_plugin_whisper_browser-0.1.0a8-py3-none-any.whl

Total release size: 36.1 kB

Release files / ovos_stt_plugin_whisper_browser-0.1.0a8.tar.gz

Download URL ovos_stt_plugin_whisper_browser-0.1.0a8.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9a3fa4bb3c608ce2c24ba4df87a9c3c31415f5d72859ee57741e6966b1dd022f
BLAKE2b-256 checksum
How to use checksums
456d7d825f788208ea6f6b6aae854701cf4f4e52250c9b186db117505bdabbdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / ovos_stt_plugin_whisper_browser-0.1.0a8-py3-none-any.whl

Download URL ovos_stt_plugin_whisper_browser-0.1.0a8-py3-none-any.whl
Size 18.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
15a45b3ba07f9ccbd889399d366c0338ac6c745a79ed7f59b2044f5372be5bd9
BLAKE2b-256 checksum
How to use checksums
3336d4c4b4f9032451a6038183f692d519b423b89db9b80dce4dbe46703d660b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for ovos-stt-plugin-whisper-browser 0.1.0a8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ovos_stt_plugin_whisper_browser-0.1.0a8.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page