Skip to content

Conversation

@lucasnewman
Copy link
Collaborator

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

self.assertEqual(latents.shape, (1, 96, 250))

y = model.decode(z).squeeze(-1)
self.assertEqual(y.shape, (1, 79_992))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test changes are unrelated, but due to an MLX change in the FFT implementation these need to be updated to clear the tests.

@Blaizzy Blaizzy merged commit 77aaefa into Blaizzy:main Apr 26, 2025
1 check passed
@lucasnewman lucasnewman deleted the dia-voice-matching branch May 2, 2025 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants