simple aiohttp server to host OpenVoiceOS stt plugins as a service
Project description
OpenVoiceOS STT HTTP Server
Turn any OVOS STT plugin into a micro service!
Install
pip install ovos-stt-http-server
Companion plugin
Use in your voice assistant with OpenVoiceOS companion plugin
Configuration
the plugin is configured just like if it was running in the assistant, under mycroft.conf
eg
"stt": {
"module": "ovos-stt-plugin-deepgram",
"ovos-stt-plugin-deepgram": {"key": "xtimes40"}
}
Usage
ovos-stt-server --help
usage: ovos-stt-server [-h] [--engine ENGINE] [--port PORT] [--host HOST]
options:
-h, --help show this help message and exit
--engine ENGINE stt plugin to be used
--lang-engine LANG_ENGINE
audio language detection plugin to be used (optional)
--port PORT port number
--host HOST host
--lang LANG default language supported by plugin (default comes from mycroft.conf)
--multi Load a plugin instance per language (force lang support, loads multiple plugins into memory)
--gradio Enable Gradio Web UI
--cache Cache models for Gradio demo
--title TITLE Title for webUI
--description DESCRIPTION
Text description to print in UI
--info INFO Text to display at end of UI
--badge BADGE URL of visitor badge
Note:
ffmpeg
is required for Gradio
eg ovos-stt-server --engine ovos-stt-plugin-fasterwhisper --lang-engine ovos-audio-transformer-plugin-fasterwhisper
Docker
you can create easily create a docker file to serve any plugin
FROM python:3.7
RUN pip3 install ovos-stt-http-server==0.0.1
RUN pip3 install {PLUGIN_HERE}
ENTRYPOINT ovos-stt-server --engine {PLUGIN_HERE}
build it
docker build . -t my_ovos_stt_plugin
run it
docker run -p 8080:9666 my_ovos_stt_plugin
Each plugin can provide its own Dockerfile in its repository using ovos-stt-http-server
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ovos-stt-http-server-0.1.1.tar.gz
.
File metadata
- Download URL: ovos-stt-http-server-0.1.1.tar.gz
- Upload date:
- Size: 524.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75e5b86e0ee3f67c6851d613facc71dcb85a2926ec5816683985e7e81bbcc754 |
|
MD5 | 0d2d5411c72054b88403dbb057a2416b |
|
BLAKE2b-256 | f301f47dfb55094ecd01840fe7f674efdfd71cc3645edc27e7534f36976b1202 |
File details
Details for the file ovos_stt_http_server-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: ovos_stt_http_server-0.1.1-py3-none-any.whl
- Upload date:
- Size: 523.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f3b07e99bc1ee16ae59f45849b868969da34db86752dcb1a0ac5dc5e083e190 |
|
MD5 | 239948491b522113160febff65394a45 |
|
BLAKE2b-256 | 16c1b8428cc61efbe066cbe940bc368c0703c88d86cb3a0680aeab672737eec3 |