Dia

Currently it has a lot of bug, so be patient.

# Setup
brew install [email protected]
python3.10 -m venv .venv
source .venv/bin/activate
python --version
pip install --upgrade pip

## Install from released
pip install -U mlx-audio

## Or from source
pip install git+https://github.com/Blaizzy/mlx-audio
pip install -r requirements.txt

## Cross check version
pip list | grep mlx

# Run
mlx_audio.tts.generate --text "Wow. Amazing." --play

mlx_audio.tts.generate --model mlx-community/Dia-1.6B --text "[S1] Wow. Amazing. (laughs)" --play

mlx_audio.tts.generate --model mlx-community/Dia-1.6B --text "[S1] Dia is an open weights text to dialogue model. [S2] You get full control over scripts and voices. [S1] Wow. Amazing. (laughs) [S2] Try it now on Git hub or Hugging Face." --play

# Ref
mlx_audio.tts.generate --model mlx-community/Dia-1.6B --text "[S1]Hello, world(laugh)" --play --ref_audio ./conversational_a.wav