Views
No views yet
k2-fsa/OmniVoice that adds:[singing] tag — sung speech / nursery-style melodic vocals[happy], [sad], [angry], [excited], [calm], [nervous], [whisper][singing] [happy] ... or [singing] [sad] ...1from omnivoice.models.omnivoice import OmniVoice
2
3model = OmniVoice.from_pretrained("ModelsLab/omnivoice-singing").to("cuda").eval()
4
5# Normal speech (unchanged behavior)
6audios = model.generate(
7 text="The quick brown fox jumps over the lazy dog.",
8 language="English",
9)
10
11# Singing
12audios = model.generate(
13 text="[singing] Twinkle twinkle little star, how I wonder what you are.",
14 language="English",
15)
16
17# Emotional speech
18audios = model.generate(
19 text="[happy] I just got the best news of my entire year!",
20 language="English",
21)
22
23# Combined
24audios = model.generate(
25 text="[singing] [sad] Quiet rain falls on the stone, memories of days now gone.",
26 language="English",
27)
28
29import soundfile as sf
30sf.write("out.wav", audios[0], model.sampling_rate)1omnivoice-infer --model ModelsLab/omnivoice-singing \
2 --text "[happy] Hello there, how wonderful to see you today!" \
3 --language English \
4 --output out.wav| Tag | Source data | Strength |
|---|---|---|
[singing] | GTSinger English (6,755 clips, ~8 h) | strong |
[happy] | CREMA-D + RAVDESS + Expresso (~2900 clips) | strong |
[sad] | CREMA-D + RAVDESS + Expresso (~2900 clips) | strong |
[angry] | CREMA-D + RAVDESS (~1500 clips) | strong |
[nervous] | CREMA-D fear + RAVDESS fearful (~1400 clips) | strong |
[whisper] | Expresso whisper (~1500 clips) | strong |
[calm] | RAVDESS calm (~190 clips) | weak — limited data |
[excited] | RAVDESS surprised (~190 clips) | weak — limited data |
1audios = model.generate(
2 text="[happy] Welcome!",
3 language="English",
4 guidance_scale=3.0,
5)ref_audio / ref_text args)instruct parameter (pitch / gender / age / accent attributes)speed / duration args)[laughter], [sigh], etc.)k2-fsa/OmniVoice:[singing] {lyrics})[calm] and [excited] had only ~190 training samples each (only one dataset contributed) — behavior is weaker than the other emotion tags.