Skip to main content

Wyoming Server for MLX whisper

Project description

Wyoming MLX Whisper

Wyoming protocol server for mlx-whisper speech-to-text on Apple Silicon.

Uses mlx-community/whisper-large-v3-turbo by default (~1.6GB download, ~1.7GB memory), which runs near real-time on M1 Pro and newer. For lower memory usage, try the quantized version with --model mlx-community/whisper-large-v3-turbo-q4.

[ToC] ๐Ÿ“š

Requirements

  • macOS with Apple Silicon (M1/M2/M3/M4)
  • Python 3.10-3.13 (3.14 not yet supported by numba)
  • uv (recommended) or pip

Installation

Using uvx (recommended, no install needed)

uvx --python 3.12 wyoming-mlx-whisper

Using pip

pip install wyoming-mlx-whisper
wyoming-mlx-whisper

Usage

Run directly

# With uvx (no install needed)
uvx --python 3.12 wyoming-mlx-whisper

# Or if installed with pip
wyoming-mlx-whisper

Run as macOS service (launchd)

Download and run the install script:

curl -fsSL https://raw.githubusercontent.com/basnijholt/wyoming-mlx-whisper/main/scripts/install_service.sh | bash

The server runs at tcp://localhost:10300 by default.

Uninstall the service:

curl -fsSL https://raw.githubusercontent.com/basnijholt/wyoming-mlx-whisper/main/scripts/uninstall_service.sh | bash

View logs:

tail -f ~/Library/Logs/wyoming-mlx-whisper/*.out ~/Library/Logs/wyoming-mlx-whisper/*.err

Home Assistant Integration

  1. Start the server (using any method above)
  2. In Home Assistant, go to Settings โ†’ Devices & Services โ†’ Add Integration
  3. Search for "Wyoming Protocol"
  4. Enter localhost (or your Mac's IP) and port 10300

The Whisper STT service will now be available for voice assistants.

Options

See the output of wyoming-mlx-whisper --help

 Usage: wyoming-mlx-whisper [OPTIONS]

 Run the Wyoming MLX Whisper server.

โ•ญโ”€ Options โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ --uri                           TEXT  unix:// or tcp://                      โ”‚
โ”‚                                       [env var: WHISPER_URI]                 โ”‚
โ”‚                                       [default: tcp://0.0.0.0:10300]         โ”‚
โ”‚ --model                         TEXT  Name of MLX Whisper model to use       โ”‚
โ”‚                                       [env var: WHISPER_MODEL]               โ”‚
โ”‚                                       [default:                              โ”‚
โ”‚                                       mlx-community/whisper-large-v3-turbo]  โ”‚
โ”‚ --language                      TEXT  Language code (e.g., 'en')             โ”‚
โ”‚                                       [env var: WHISPER_LANGUAGE]            โ”‚
โ”‚ --debug           --no-debug          Log DEBUG messages                     โ”‚
โ”‚                                       [env var: WHISPER_DEBUG]               โ”‚
โ”‚                                       [default: no-debug]                    โ”‚
โ”‚ --log-format                    TEXT  Format for log messages                โ”‚
โ”‚                                       [default:                              โ”‚
โ”‚                                       %(levelname)s:%(name)s:%(message)s]    โ”‚
โ”‚ --version                             Print version and exit                 โ”‚
โ”‚ --help        -h                      Show this message and exit.            โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

Development

uv sync
uv run pre-commit install

Acknowledgements

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

wyoming_mlx_whisper-1.1.0.tar.gz (93.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wyoming_mlx_whisper-1.1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file wyoming_mlx_whisper-1.1.0.tar.gz.

File metadata

  • Download URL: wyoming_mlx_whisper-1.1.0.tar.gz
  • Upload date:
  • Size: 93.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wyoming_mlx_whisper-1.1.0.tar.gz
Algorithm Hash digest
SHA256 0005f6002eb4d020590e6953d1f32b066d39f54a7d776e381c1a1fb0c7d3120f
MD5 28b268c021d207fa9bc89fce9e0d7df9
BLAKE2b-256 a46105a71f45a3bd7ee127dcfb60af6c4694ce0c7c143f3c95255dcb6c330757

See more details on using hashes here.

Provenance

The following attestation bundles were made for wyoming_mlx_whisper-1.1.0.tar.gz:

Publisher: release.yml on basnijholt/wyoming-mlx-whisper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wyoming_mlx_whisper-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wyoming_mlx_whisper-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f50a208172c3f37bb9db29c5f87fac4e4d841b1bf135ccb1be32c1a9d4d93133
MD5 25f1d16a68e34fedaad6b25a4eae9645
BLAKE2b-256 8b9107fa5c8d5b25ff5b3b072d80dc11899f3131e7f05067981f400e3a4fcf29

See more details on using hashes here.

Provenance

The following attestation bundles were made for wyoming_mlx_whisper-1.1.0-py3-none-any.whl:

Publisher: release.yml on basnijholt/wyoming-mlx-whisper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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