Views
No views yet
1from mlx_audio.tts import load
2
3model = load("mlx-community/ACE-Step1.5-MLX-4bit")
4
5for result in model.generate(
6 text="upbeat electronic dance music with energetic synthesizers",
7 duration=30.0,
8):
9 audio = result.audio # [samples, 2] stereo @ 48kHz
10 sample_rate = result.sample_rate1for result in model.generate(
2 text="English pop song with clear female vocals, catchy melody",
3 lyrics="""[verse]
4Dance with me tonight
5Under the neon lights
6
7[chorus]
8We're alive, we're on fire
9Dancing higher and higher
10""",
11 duration=60.0,
12 vocal_language="en",
13):
14 ...use_lm=True) which generates
a song blueprint before running the diffusion transformer.