Metadata-Version: 2.4
Name: ovos-stt-plugin-browser
Version: 0.1.0a2
Summary: OpenVoiceOS STT plugin: the browser's own speech recognition (Web Speech API)
Author: emkay-voice
Maintainer: Andreas Lorensen
License: Apache-2.0
Project-URL: Homepage, https://github.com/emkay-voice/ovos-stt-plugin-browser
Project-URL: Issues, https://github.com/emkay-voice/ovos-stt-plugin-browser/issues
Project-URL: Emkay, https://github.com/emkay-voice/emkay
Keywords: ovos,openvoiceos,plugin,stt,speech-to-text,browser,web-speech-api,pyodide,emkay
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Environment :: WebAssembly :: Emscripten
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ovos-plugin-manager>=0.0.26
Requires-Dist: ovos-utils>=0.0.38
Requires-Dist: ovos-config>=0.0.12
Dynamic: license-file

# ovos-stt-plugin-browser

An [OpenVoiceOS](https://openvoiceos.org) speech-to-text plugin that uses the
**browser's own speech recognition** (the Web Speech API): Google's in Chrome
on Android, Apple's on an iPhone.

It was made for [Emkay](https://github.com/emkay-voice/emkay), OpenVoiceOS in
the browser (Pyodide), and is what Emkay uses. It only makes sense where OVOS
runs in a web page.

- **Good** in many languages the public OVOS STT servers do not handle well
  (Danish, for one), and nothing to download.
- **Not private**: the browser sends the audio to Google or Apple. For speech
  that stays on the device, choose another STT plugin.

## How it works

The browser listens to the microphone itself and gives text, not audio. So
when this plugin is chosen (`stt.module: ovos-stt-plugin-browser`), the page
does not record: it starts the browser's recognition, shows the words as they
come, and passes the final text to OVOS as any STT result goes.

`execute()`, the path for recorded audio, is not used then. A caller that
does use it (a browser without speech recognition, such as Firefox) gets the
STT plugin in `stt.fallback_module` instead, as a device does when its STT
fails.

Emkay's page side is in [`web/app.js`](https://github.com/emkay-voice/emkay/blob/main/web/app.js)
(`browserSTT`), and the text goes to OVOS through `speech.heard_text`.

## Config

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

The language is OVOS' own (`lang`).

## License

Apache-2.0
