Add your description here
Project description
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)
- Sign in or create an account on portal.azure.com.
- Create a subscription by searching for
subscriptionin the search bar. Consult Microsoft Learn for more information. - Create a speech resource by searching for
speech service. - 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)
- 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:
[!NOTE] Setting multiple languages will override the options set by Home Assistant's Voice configuration! It will prompt you to select a language but the option is ignored when speech is processed.
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
-
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wyoming_microsoft_stt-1.3.9.tar.gz.
File metadata
- Download URL: wyoming_microsoft_stt-1.3.9.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd7212e1acd77382657a00b55be29caaafc4fd7746fbb05a6d9de81869d74773
|
|
| MD5 |
6d5809898ca2fed4256c903f7228a4aa
|
|
| BLAKE2b-256 |
422fa2c7b3dca1874ed567d61bfc7122585f113b2b9c98b5a8ee565fbe9d565c
|
File details
Details for the file wyoming_microsoft_stt-1.3.9-py3-none-any.whl.
File metadata
- Download URL: wyoming_microsoft_stt-1.3.9-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d22e14eebebb152e7a48ae7c0cb46f6718e5209ad610fd73a4411f2f0838ece
|
|
| MD5 |
df19dca42090174ff65efac130075bec
|
|
| BLAKE2b-256 |
0db3ced4b4836f0719b7e2d24d2fb92206f08a0a30581b334dde6f81d72ea529
|