Add voice matching support for Dia #93
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This allows for consistent voices for each generation. Using the example prompt from their repo:
python -m mlx_audio.tts.generate --model mlx-community/Dia-1.6B --text "[S1] Testing, 1, 2 3. Is this thing on? [S2] Yeah, it's working. (laughs) [S1] OK, phew. (laughs)" --ref_audio example_prompt.mp3 --ref_text "[S1] Dia is an open weights text to dialogue model. [S2] You get full control over scripts and voices. " --sample_rate 44100 --play