pocket-tts-mlx
MLX backend for pocket-tts optimized for Apple Silicon.
Runtime is torch-free.
What's New in 0.3.0
- Default model is
english(the current English weights) at temperature 0.3. - Shipped languages include french, german, dutch, italian, portuguese, and spanish, plus 24-layer previews and a drifting English sampler.
- Current models use
tokenizer.json.b6369a24still uses SentencePiece. - Built-in voices follow the language.
--language frenchusesestelle. - Opt-in
--normalizeraises quiet voices to a common level. Opt-in--brightenlifts dark voices such as frenchestelle. - Release notes: v0.3.0.
Installation
PyPI install:
pip install pocket-tts-mlx
Local development:
pip install -e .
Model weights are downloaded from Hugging Face on first run. For voice cloning weights, accept the model terms and authenticate:
hf auth login
Quickstart
from pocket_tts_mlx import TTSModel
model = TTSModel.load_model()
state = model.get_state_for_audio_prompt("alba")
audio = model.generate_audio(state, "Hello from MLX!")
load_model() loads english. load_model("b6369a24") still loads the previous weights. Pass temp=0.7 when you want the old temperature. load_model(language="french") selects another shipped config. Pass config or language, not both.
CLI
pocket-tts-mlx --language english -o hello.wav "Hello, world!"
pocket-tts-mlx --language french -o bonjour.wav "Bonjour."
--temperature overrides the config value. --max-tokens defaults to 50, --frames-after-eos is unset, and --warmup-frames defaults to 0. Text - reads stdin.
Voices
The default voice follows the language:
- english, and any other stem:
alba - french:
estelle - italian:
giovanni - german:
juergen - spanish:
lola - portuguese:
rafael - dutch:
daan
Other built-in names (marius, javert, jean, and the rest of the upstream catalog) work with a model loaded from a shipped config. b6369a24 keeps its original eight voices as audio prompts. A config from outside this package does not accept those names; pass an audio file instead.
Loudness
Output level depends on the voice. juergen (german) and daan (dutch) come out 6 to 9 dB quieter than alba or estelle, in upstream Pocket TTS as well. --normalize, or generate_audio(..., normalize=True), scales speech to about -18 dBFS and holds peaks under -1 dBFS. It is off by default, so output matches upstream unless you ask. generate_audio_stream does not normalize.
pocket-tts-mlx --language german --normalize -o hallo.wav "Guten Morgen."
Brightness
The french estelle voice sounds muffled: above 2 kHz it is about 10 dB below alba, in upstream Pocket TTS as well. --brighten, or generate_audio(..., brighten=True), adds a +10 dB high shelf at 1.5 kHz. It is off by default. Combined with --normalize, brightening runs first. generate_audio_stream does not brighten.
pocket-tts-mlx --language french --brighten --normalize -o bonjour.wav "Bonjour."
Onset options
--warmup-frames, --trim-start-ms, and --fade-in-ms still trim or fade the start of the file. They default to 0. Each chunk also fades its first 5 ms on its own.
Requirements
- Python 3.10+
- Apple Silicon Mac (M1/M2/M3/M4)
- MLX
- Internet access for initial model downloads
Notes
- Voice cloning requires Hugging Face access to
kyutai/pocket-tts. - Non-voice-cloning weights are used automatically when voice cloning is unavailable.
Release Notes
- Latest: v0.3.0
- Previous package: PyPI 0.2.1
Metadata
Release files for pocket-tts-mlx 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pocket_tts_mlx-0.3.0.tar.gz | 45.8 kB | Without provenance | Details for pocket_tts_mlx-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pocket_tts_mlx-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for pocket_tts_mlx-0.3.0-py3-none-any.whl |
Total release size: 112.9 kB
Release files / pocket_tts_mlx-0.3.0.tar.gz
| Download URL | pocket_tts_mlx-0.3.0.tar.gz |
|---|---|
| Size | 45.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
956c30147e4ea979c99cde6f7ebfffe9919f6e2286d3e015c2e5559a437b2bb9
|
|
BLAKE2b-256 checksum How to use checksums |
3197e9e7f8b0adae7f92796551a9232441635353230bc670c4edd5b1fed06f41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Release files / pocket_tts_mlx-0.3.0-py3-none-any.whl
| Download URL | pocket_tts_mlx-0.3.0-py3-none-any.whl |
|---|---|
| Size | 67.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad177be9213b76b7323c88402c7be138158da63eb06fc9b910c50782e21251ee
|
|
BLAKE2b-256 checksum How to use checksums |
befee4a04814af1762ea4af923c5e0a56adbfb5597bfde0c2570f61c53f326bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Security for pocket-tts-mlx 0.3.0
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.