Skip to main content

MLX backend for pocket-tts with Apple Silicon optimization

Project description

pocket-tts-mlx

MLX backend for pocket-tts optimized for Apple Silicon.

Runtime is torch-free. Torch is only required for optional parity tests.

Installation

PyPI install (available after release):

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("marius")
audio = model.generate_audio(state, "Hello from MLX!", max_tokens=200)

CLI

pocket-tts-mlx "Hello, world!" --voice marius --output output.wav

Voices

Predefined voices:

  • alba
  • marius
  • javert
  • jean
  • fantine
  • cosette
  • eponine
  • azelma

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.

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

pocket_tts_mlx-0.2.0.tar.gz (29.5 kB view details)

Uploaded Source

Built Distribution

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

pocket_tts_mlx-0.2.0-py3-none-any.whl (37.8 kB view details)

Uploaded Python 3

File details

Details for the file pocket_tts_mlx-0.2.0.tar.gz.

File metadata

  • Download URL: pocket_tts_mlx-0.2.0.tar.gz
  • Upload date:
  • Size: 29.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for pocket_tts_mlx-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9453f3d5716db0fb826ba130b87f428acb4b3f4e0a13b4f5e441a0cb0466a5a1
MD5 842c01d92a0a007c873c1028fa4a2c78
BLAKE2b-256 3d078e912d1d3739ebeba8084d0180dd94cadf808083d0d0eca92f746bba7357

See more details on using hashes here.

File details

Details for the file pocket_tts_mlx-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pocket_tts_mlx-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 37.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for pocket_tts_mlx-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7490660ece5a1e2805cea562adf75de3f3c4e86e70840041b7453ea0a8772b15
MD5 3360c5535594faf1121bc70ce80601cc
BLAKE2b-256 ef4a24f6056a8eab383b15e38a4c3545760fc2f8e2638094b4b92b0b8f6dae93

See more details on using hashes here.

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