multimodalart HF Staff commited on
Commit
66018fa
·
verified ·
1 Parent(s): 4de0623

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +75 -0
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ base_model: k2-fsa/OmniVoice
4
+ datasets:
5
+ - XXH333/WordVoice-5A
6
+ language:
7
+ - en
8
+ pipeline_tag: text-to-speech
9
+ tags:
10
+ - tts
11
+ - voice-cloning
12
+ - controllable-tts
13
+ - word-level-control
14
+ - omnivoice
15
+ ---
16
+
17
+ # OmniVoice Word-Control
18
+
19
+ [OmniVoice](https://huggingface.co/k2-fsa/OmniVoice) (0.6B masked-diffusion LM TTS on
20
+ Qwen3-0.6B) fine-tuned for **five-dimensional word-level acoustic control**, following the
21
+ task of [WordVoice (arXiv:2607.06461)](https://huggingface.co/papers/2607.06461) and its
22
+ dataset [WordVoice-5A](https://huggingface.co/datasets/XXH333/WordVoice-5A).
23
+
24
+ Control is injected as **inline special tokens** placed before any word (any subset works;
25
+ untagged words are planned freely by the model):
26
+
27
+ ```
28
+ <|dur_9|><|bnd_0|><|eng_15|><|pit_17|><|ton_rise|>word
29
+ ```
30
+
31
+ | tokens | attribute | discretization |
32
+ |---|---|---|
33
+ | `<\|dur_0..63\|>` | word duration | 40 ms frames (40 ms – 2.56 s) |
34
+ | `<\|bnd_0..4\|>` | pause after word | b0 (none) … b4 (long, >0.4 s) |
35
+ | `<\|eng_0..19\|>` | energy | 20 uniform bins over [0, 1] |
36
+ | `<\|pit_0..19\|>` | pitch (core F0) | 20 uniform bins over [−1, 1] |
37
+ | `<\|ton_flat\|rise\|rrise\|fall\|ffall\|peak\|valley\|>` | pitch contour | 7 morphologies |
38
+
39
+ ## Usage
40
+
41
+ ```python
42
+ from omnivoice import OmniVoice # code: github.com/k2-fsa/OmniVoice
43
+
44
+ model = OmniVoice.from_pretrained("multimodalart/omnivoice-word-control", device_map="cuda")
45
+ audio = model.generate(
46
+ text="I will <|pit_3|><|ton_ffall|>never agree to <|bnd_4|>this!",
47
+ language="en",
48
+ ref_audio="ref.wav",
49
+ ref_text="Transcript of the reference clip.",
50
+ )
51
+ ```
52
+
53
+ The tokenizer in this repo already contains the 116 control tokens. For strict overall
54
+ timing, also pass `duration=` (the diffusion canvas is fixed before generation, so word
55
+ duration tokens redistribute time within it). Try it in the
56
+ [demo Space](https://huggingface.co/spaces/multimodalart/omnivoice-word-control).
57
+
58
+ ## Training
59
+
60
+ - Init from `k2-fsa/OmniVoice`; all parameters trained; masked-diffusion objective unchanged
61
+ (control tokens are conditioning only — no loss on text).
62
+ - Data: WordVoice-5A **English**, all 4 train shards (~2,138 h, 1.18 M utterances); on-the-fly
63
+ tag construction with dropout (15% utterances untagged / 20% words / attributes kept @ 0.7)
64
+ to preserve plain TTS and enable partial control.
65
+ - 40k steps × 8,192 effective tokens (~1 epoch), lr 5e-5 cosine, bf16, single A100-40GB, ≈6 h.
66
+ - Final eval loss 4.109 (best of run). Directional probes (hi/lo tag ratio, seed-matched):
67
+ pitch 3.61, energy 2.52, duration 2.70.
68
+
69
+ Fine-tuning recipe: the `word-control` patch set on the OmniVoice trainer
70
+ (`omnivoice/data/word_control.py` — tag vocabulary, binning, alignment, dropout).
71
+
72
+ ## License & lineage
73
+
74
+ Weights are **CC-BY-NC-4.0** (derivative of the CC-BY-NC OmniVoice release).
75
+ Data: WordVoice-5A (CC-BY-4.0). Task formulation: WordVoice, arXiv:2607.06461.