Skip to content

OpenVoiceOS/ovos-stt-http-server

Repository files navigation

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
  --port PORT                 port number
  --host HOST                 host
  --lang LANG                 default language
  --gradio                    flag to enable Gradio web UI
  --cache                     flag to pre-cache examples in Gradio web UI
  --title TITLE               title for Gradio UI
  --description DESCRIPTION   Description for Gradio UI
  --info INFO                 Text to display in Gradio UI
  --badge BADGE               URL of badge to show in Gradio UI

Note: ffmpeg is required for Gradio

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