Skip to main content

Wyoming Microsoft STT

Wyoming protocol server for Microsoft Azure speech-to-text.

This Python package provides a Wyoming integration for Microsoft Azure speech-to-text and can be directly used with Home Assistant voice and Rhasspy.

Azure Speech Service

This program uses Microsoft Azure Speech Service. You can sign up to a free Azure account which comes with free tier of 5 audio hours per month, this should be enough for running a voice assistant as each command is relatively short. Once this amount is exceeded Azure could charge you for each second used (Current pricing is $0.36 per audio hour). I am not responsible for any incurred charges and recommend you set up a spending limit to reduce your exposure. However, for normal usage the free tier could suffice and the resource should not switch to a paid service automatically.

If you have not set up a speech resource, you can follow the instructions below. (you only need to do this once and works both for Speech-to-Text and Text-to-Speech)

  1. Sign in or create an account on portal.azure.com.
  2. Create a subscription by searching for subscription in the search bar. Consult Microsoft Learn for more information.
  3. Create a speech resource by searching for speech service.
  4. Select the subscription you created, pick or create a resource group, select a region, pick an identifiable name, and select the pricing tier (you probably want Free F0)
  5. Once created, copy one of the keys from the speech service page. You will need this to run this program.

Usage

Depending on the installation method parameters are parsed differently. However, the same options are used for each of the installation methods and can be found in the table below. Your service region and subscription key can be found on the speech service resource page (step 5 the Azure Speech service instructions).

For the bare-metal Python install the program is run as follows:

python -m wyoming-microsoft-stt --<key> <value>
Key Optional Description
service-region No Azure service region e.g., uksouth
subscription-key No Azure subscription key
language Yes Default language to set for transcription, default: en-GB. For auto-detection provide multiple languages.
uri No Uri where the server will be broadcasted e.g., tcp://0.0.0.0:10300
download-dir Yes Directory to download models into (default: )
update-languages Yes Download latest languages.json during startup
debug Yes Log debug messages

Multi-language support

This add-on can also auto-detect the spoken language from a list of pre-defined languages (max. 10). To do this in Home Assistant provide the languages separated by semi-colons like so: Screenshot 2025-05-04 at 11 59 55

Installation

Depending on your use case there are different installation options.

  • Using pip Clone the repository and install the package using pip. Please note the platform requirements as noted here.

    pip install .
    
  • Home Assistant Add-On Add the following repository as an add-on repository to your Home Assistant, or click the button below. https://github.com/hugobloem/homeassistant-addons

    Open your Home Assistant instance and show the add add-on repository dialog with a specific repository URL pre-filled.

  • Docker container To run as a Docker container use the following command:

    docker run ghcr.io/hugobloem/wyoming-microsoft-stt-noha:latest --<key> <value>
    

    For the relevant keys please look at the table below

  • docker compose

    Below is a sample for a docker compose file. The azure region + subscription key can be set in environment variables. Everything else needs to be passed via command line arguments.

    wyoming-proxy-azure-stt:
      image: ghcr.io/hugobloem/wyoming-microsoft-stt-noha
      container_name: wyoming-azure-stt
      ports:
        - "10300:10300"
      environment:
        AZURE_SERVICE_REGION: swedencentral
        AZURE_SUBSCRIPTION_KEY: XXX
      command: --language=en-GB,nl-NL --uri=tcp://0.0.0.0:10300
    

Metadata

Release files for wyoming-microsoft-stt 1.3.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wyoming-microsoft-stt 1.3.11
File Size Uploaded Provenance Actions
wyoming_microsoft_stt-1.3.11.tar.gz 15.2 kB Without provenance Details for wyoming_microsoft_stt-1.3.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wyoming-microsoft-stt 1.3.11
File Interpreter ABI Platform Actions
wyoming_microsoft_stt-1.3.11-py3-none-any.whl Python 3 none any Details for wyoming_microsoft_stt-1.3.11-py3-none-any.whl

Total release size: 31.0 kB

Release files / wyoming_microsoft_stt-1.3.11.tar.gz

Download URL wyoming_microsoft_stt-1.3.11.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ffa9e0cea7465afc54f230c77255a688aedb3787c33e4fa15e18559dcf70908a
BLAKE2b-256 checksum
How to use checksums
6343a7ca440ec7f77a48fd3daa1cf83ab51d164924ca9fe9b3b5a3a70b39407d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / wyoming_microsoft_stt-1.3.11-py3-none-any.whl

Download URL wyoming_microsoft_stt-1.3.11-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ae5eebdee8a743b02e10457df4ea974a4390e8fec2079c22418498dc45f2f4e
BLAKE2b-256 checksum
How to use checksums
5ada1ce0c4c012460a8432f0d5aaffb0e6a937ab2636b955cc5a7f01be8256ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for wyoming-microsoft-stt 1.3.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page