Views
No views yet
[S1], [happy], [sad]) to modulate expressiveness.(laughs), (coughs), or (sighs) inline.1from dia.model import Dia
2import soundfile as sf
3
4# Load the Aurora-1.6B model
5model = Dia.from_pretrained("Lorenzob/aurora-1.6b")
6
7# Generate a happy spoken line followed by singing
8text = "[S1][happy] Hello world! Now sing 'Happy Birthday to You'"
9audio = model.generate(text)
10
11# Save output at 44.1 kHz
12sf.write("output.wav", audio, 44100)