Examples

June 16, 2026 · View on GitHub

Runnable scripts that drive a running ovos-stt-http-server. Each vendor script points that vendor's own client at the matching compat router via a base-URL / endpoint override — no request rewriting — which is exactly what a DNS redirect to the server would achieve.

Run a server first

pip install ovos-stt-http-server ovos-stt-plugin-fasterwhisper
ovos-stt-server --engine ovos-stt-plugin-fasterwhisper --port 8080

All scripts target http://localhost:8080 (edit OVOS_HOST to change it).

Scripts

ScriptDrivesPrefixInstall
native_example.pynative /stt, /status— (standard library)
openai_whisper_example.pyofficial openai/v1pip install openai
deepgram_example.pyofficial deepgram-sdk/deepgrampip install deepgram-sdk
assemblyai_example.pyofficial assemblyai/assemblyaipip install assemblyai
azure_stt_example.pyHTTP (requests)/azure-sttpip install requests
aws_transcribe_example.pyofficial boto3/awspip install boto3
ibm_watson_example.pyofficial ibm-watson/watson/speech-to-textpip install ibm-watson
wit_ai_example.pyofficial wit/witpip install wit
chromium_example.pyovos-stt-plugin-chromium/speech-apipip install ovos-stt-plugin-chromium SpeechRecognition
whisper_cpp_example.pyHTTP (requests)/inferencepip install requests
speechmatics_example.pyofficial speechmatics-batch/speechmaticspip install speechmatics-batch
vosk_grpc_example.pygRPC stubs--vosk-grpc-portpip install grpcio (separate process)
vosk_mqtt_example.pypaho-mqtt--vosk-mqtt-brokerpip install paho-mqtt (separate process)

native_example.py reads a mono 16-bit WAV and posts its raw PCM frames:

python examples/native_example.py path/to/clip.wav en
python examples/native_example.py status

The vosk_grpc_example.py and vosk_mqtt_example.py scripts target the gRPC/MQTT vosk surfaces, which run as separate processes and are not mounted in the default HTTP app — see docs/api-compatibility.md.