Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ovos-stt-http-server-0.0.3a4.tar.gz (524.2 kB view details)

Uploaded Source

Built Distribution

ovos_stt_http_server-0.0.3a4-py3-none-any.whl (523.2 kB view details)

Uploaded Python 3

File details

Details for the file ovos-stt-http-server-0.0.3a4.tar.gz.

File metadata

File hashes

Hashes for ovos-stt-http-server-0.0.3a4.tar.gz
Algorithm Hash digest
SHA256 8d1cf716f4ab57805bb86d26dd13f51391696695b9e04bd70c6b19efc4ec99b9
MD5 0adf17d87eddcc37d5d33ea1ea71c1c4
BLAKE2b-256 ea12474430752fd5ed275db2043d2760a7a0f8b8a26715a9cd29a26fc56b4dda

See more details on using hashes here.

File details

Details for the file ovos_stt_http_server-0.0.3a4-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_stt_http_server-0.0.3a4-py3-none-any.whl
Algorithm Hash digest
SHA256 fcaba1507a5b356039ca6683be1eb5a3d5a40689cfbf2b33deff0c110be7139d
MD5 1099bfdbb48db0de91c2727784dc2e7a
BLAKE2b-256 f765e81771e185047612e5fe32d21bebc837ada18925aac3ae7a838a068e0592

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page