ChristophSchuhmann commited on
Commit
254d041
·
verified ·
1 Parent(s): 6688ecf

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +311 -0
README.md ADDED
@@ -0,0 +1,311 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories: [text-to-speech, audio-classification]
4
+ language: [en, de, fr, es, it, nl, pl, pt]
5
+ tags: [speech, emotion, voice, trajectory, tts, moss, webdataset]
6
+ size_categories: [100K<n<1M]
7
+ ---
8
+
9
+ # LAION Emotional-Trajectory Speech — tier T≥0.80
10
+
11
+ **319,765 crossfaded speech trajectories · 4,482 audio-hours · 1,598,825 source clips**
12
+
13
+ A *trajectory* is a short sequence of 5 consecutive utterances **by one
14
+ speaker** whose measured emotion or voice character moves monotonically from one end of
15
+ the corpus distribution to the other. The clips are joined into one continuous audio file
16
+ with equal-power crossfades, the joined audio is **re-tokenized** with MOSS-Audio-
17
+ Tokenizer-v2, and every chain carries a two-level caption.
18
+
19
+ This is the **T≥0.80** rung: every chain crosses at least **80 % of the corpus range**
20
+ on its named dimension while never stepping more than 25 % between adjacent clips.
21
+
22
+ ## Why a trajectory dataset
23
+
24
+ Most expressive-TTS corpora label a clip with *one* emotion. That teaches a model to hit
25
+ a target but not to *travel* — to start guarded and end furious, to slide from amusement
26
+ into contempt. These chains are examples of the travel itself, with the change measured
27
+ rather than asserted.
28
+
29
+ ## The tier ladder — strictly nested
30
+
31
+ | tier | chains | hours | en % | de % | other % |
32
+ |---|--:|--:|--:|--:|--:|
33
+ | T≥0.20 | 4,381,192 | 44,999 | 62.8 | 21.4 | 15.8 |
34
+ | T≥0.25 | 2,881,179 | 33,590 | 62.2 | 26.5 | 11.3 |
35
+ | T≥0.40 | 1,594,365 | 19,603 | 61.9 | 34.2 | 3.9 |
36
+ | T≥0.50 | 1,007,755 | 13,371 | 61.0 | 37.8 | 1.2 |
37
+ | T≥0.60 | 783,747 | 10,423 | 60.6 | 39.2 | 0.3 |
38
+ | T≥0.70 | 615,517 | 8,194 | 59.7 | 40.3 | 0.0 |
39
+ | T≥0.80 **(this release)** | 319,765 | 4,531 | 59.6 | 40.4 | 0.0 |
40
+
41
+ Higher T is a **strict subset** of every lower T (verified by set containment, all four
42
+ rules × all seven rungs). So you can train on T≥0.20 and evaluate on T≥0.80 knowing the
43
+ harder set is contained in the easier one, and a curriculum needs no re-download.
44
+
45
+ ## How a chain qualifies
46
+
47
+ Scores are mapped to a **tie-aware mid-rank ECDF** over all 132,833,726 annotated
48
+ utterances, so "moved 0.25" means "crossed 25 % of the whole corpus" identically on every
49
+ dimension. Writing `u_e(i)` for that percentile of dimension `e` at clip `i`, with
50
+ `A = argmax_e u_e(first)` and `B = argmax_e u_e(last)`:
51
+
52
+ | rule | family | requires |
53
+ |---|---|---|
54
+ | `B1` | `emotion` | one-sided: `\|Δu_B\| ≥ T`, per-step ≤ C on axis B |
55
+ | `AB2` | `emotion_twosided` | both named axes move by ≥ T, per-step ≤ C on both |
56
+ | `PXR` | `proxy_spearman` | as AB2, but an endpoint that cannot ramp certifies smoothness on a correlated proxy axis |
57
+ | `VN1` | `voicenet` | one of 57 VoiceNet voice descriptors sweeps by ≥ T |
58
+
59
+ `C = 0.25` throughout. A chain may satisfy several rules; the `rules` column lists all of
60
+ them and the row appears **once**.
61
+
62
+ > **PXR caveat.** Only the *Spearman* proxy family is present in the source chain table.
63
+ > A tail-lift proxy family exists upstream (it covers 1,553 of 1,560 ordered emotion pairs
64
+ > against Spearman's 1,475) but has no rows here, so every `PXR` chain in this release is
65
+ > Spearman-derived and labelled `proxy_map = "spearman"`.
66
+
67
+ ## The speaker filter — strict, and no voice conversion
68
+
69
+ Mined chains must satisfy **both** conditions on `Orange/Speaker-wavLM` cosines:
70
+
71
+ ```
72
+ min_cos_consec >= 0.80 every adjacent pair
73
+ min_cos_anchor >= 0.80 every clip against the first
74
+ ```
75
+
76
+ Neighbour-only similarity does not chain — A can resemble B and B resemble C while A and
77
+ C are plainly different people — so the anchored condition is what catches drift, and
78
+ requiring both is the strict reading. **Chains with no measurement are dropped, not
79
+ kept.** No voice conversion is applied anywhere: a chain is one real speaker or it is not
80
+ in the dataset.
81
+
82
+ `vprof_vc` chains are exempt from this filter **and only from this filter**: one voice
83
+ profile is one cloned voice by construction, so there is no identity to verify. They
84
+ carry `cos_source = "vprof-cloned-voice"`.
85
+
86
+ ## Rendering
87
+
88
+ * Every clip levelled to **exactly −20.0 dBFS RMS** before joining. MOSS's own loudness
89
+ normaliser targets −20 dBFS but clamps gain to ±3 dB, and 59 % of corpus clips hit that
90
+ clamp; pre-scaling makes its gain zero, so the seam step is zero *by construction*.
91
+ * **150 ms equal-power (cos/sin) crossfade** at every join, shortened to 100 ms on a hot
92
+ onset or tail, never more than 25 % of either segment. A linear crossfade sums to less
93
+ than unit energy at its midpoint and dips audibly.
94
+ * Peak guard applied **once** to the finished chain.
95
+ * 48 kHz mono, MP3 96 kbps CBR.
96
+
97
+ ## Re-tokenization — and why it was necessary
98
+
99
+ The crossfaded concatenation is **new audio**. The constituent clips' existing MOSS codes
100
+ describe the clips, not the chain, and MOSS's codec blocks are causal — decoding clip B
101
+ with clip A in context changes B by about −7.5 dB relative error over its whole length.
102
+ So the chain is re-encoded from the rendered waveform:
103
+
104
+ `OpenMOSS-Team/MOSS-Audio-Tokenizer-v2`, **12 codebooks × 1024, 12.5 fps**. One frame is
105
+ 12 tokens = 80 ms. (The codec ships 32 quantizers; the model consumes 12. 32 is depth,
106
+ not a block size.)
107
+
108
+ Stored as `uint16 [T, 12]` in `<chain>.moss.npy`, with `moss_frames == floor(dur_s ×
109
+ 12.5)`.
110
+
111
+ ## Captions — two levels, both shipped
112
+
113
+ ### Inline, per segment
114
+ A screenplay: `(emotions · voice descriptors) the words spoken`, one line per clip.
115
+ Descriptors identical across the whole chain are hoisted out into
116
+ `constant_descriptors`, because a value that never changes says nothing about a
117
+ trajectory.
118
+
119
+ ### General, for the whole concatenation
120
+ Derived by **scoring the rendered audio**, not the source clips. Two variants:
121
+
122
+ * **`caption_general_a`** — the top 3–5 VoiceNet dimensions, **no emotion terms at all**.
123
+ Emotion comes solely from the inline tags.
124
+ * **`caption_general_b`** — the same, plus the top 2–3 emotions.
125
+
126
+ **The >30 s split.** The scorer pads/truncates every input to exactly 30 s, so scoring a
127
+ 45 s chain would silently describe only its first 30 s. Chains longer than 30 s are split
128
+ at **segment boundaries** into ≤30 s parts, each part scored, and the parts combined by
129
+ duration weight (VoiceNet regressions and emotion scores averaged; ordinal buckets taken
130
+ from the longest part, so bucket and label stay consistent). `n_score_parts` records how
131
+ many. In this tier **96.7 %** of chains are split — the normal case, not an edge
132
+ case.
133
+
134
+ **The emotion gate** is a tie-aware mid-rank ECDF, top 10 % *for that emotion*, max 3
135
+ named. This matters: the 40 emotion heads sit on different scales, and `emo_Awe` is at or
136
+ below zero for ~92 % of clips, so its p90 *value* is −0.0 and a naive `score >= p90_value`
137
+ test would name Awe on about a third of all clips. The mid-rank ECDF maps that tie block
138
+ to 0.47 and it correctly fails the gate. When nothing clears, **the clause is simply
139
+ absent** — there is no "no dominant emotion" string. `emotion_clause_present` records it.
140
+
141
+ Every ranking breaks ties **explicitly on the dimension or emotion name**, so captions are
142
+ byte-identical across runs.
143
+
144
+ ## ⚠ Burst annotations mean two different things — read this
145
+
146
+ A `(parenthetical)` inside the transcript is **not** one claim. Measured across the corpus:
147
+
148
+ | source | paren & `n_bursts`==0 | paren & `n_bursts`>0 |
149
+ |---|--:|--:|
150
+ | **`vprof_vc`** | **37.7 %** | 11.4 % |
151
+ | `emolia` | 0.0 % | 28.5 % |
152
+ | `podcast` | 0.0 % | 44.0 % |
153
+ | `kartoffelphon` | 0.0 % | 24.5 % |
154
+ | `eurospeech` | 1.5 % | 46.2 % |
155
+ | `mls` | 0.0 % | 0.4 % |
156
+
157
+ In the **mined** corpora a parenthetical always coincides with a detected burst — it is
158
+ detector output, an observed event. In **`vprof_vc`** roughly two-fifths of clips carry a
159
+ parenthetical the detector never confirmed: those are burst *directions from the synthesis
160
+ prompt*, not observations.
161
+
162
+ Because `vprof_vc` is **100.0 %** of this tier, most parentheses here are the
163
+ unconfirmed kind. So each segment carries the two claims **separately**:
164
+
165
+ * `burst_detected` — `n_bursts > 0`, a real detection
166
+ * `burst_scripted` — a parenthetical with `n_bursts == 0`, requested but unconfirmed
167
+ * `burst_note` — `"detected"` / `"scripted-unconfirmed"` / `"none"`
168
+
169
+ **Do not treat them as the same signal.**
170
+
171
+ ## ⚠ Language: the chain label is the FIRST clip only
172
+
173
+ `lang_iso` on a chain is taken from its first clip. That is **not** the language of the
174
+ whole chain. Measured on this tier by two independent methods (per-clip `lang` from the
175
+ index, and stopword detection on the segment text):
176
+
177
+ | | share of chains |
178
+ |---|--:|
179
+ | single-language | **7.4 %** |
180
+ | **mixes two languages** (de+en) | **92.6 %** |
181
+
182
+ The cause is structural, not a bug: a `vprof_vc` chain is five takes **by one cloned
183
+ voice of five different texts**, and those texts are not all in one language. The voice
184
+ identity is constant; the language is not.
185
+
186
+ So each chain carries the honest fields alongside the label:
187
+
188
+ * `langs` — sorted distinct languages actually present, e.g. `["de","en"]`
189
+ * `lang_mixed` — true when more than one
190
+ * `n_langs`
191
+ * per segment, `segments[i].lang`
192
+
193
+ **Filter on `langs` / `lang_mixed`, not on `lang_iso`**, unless you specifically want
194
+ "whatever the first clip was". The per-tier `en %` / `de %` tables above are computed on
195
+ the chain label and inherit exactly this caveat.
196
+
197
+ ## Composition
198
+ | dataset | chains | licence |
199
+ |---|--:|---|
200
+ | `vprof_vc` | 319,650 | generated (see note) |
201
+ | `emolia` | 115 | CC-BY-4.0 |
202
+
203
+ This is the **CLEAN** release: `podcast` and `evasnippets` are removed for provenance, and `kartoffelphon` is held pending a licensing review.
204
+
205
+ ## Files
206
+
207
+ ```
208
+ traj-t80-NNNNN.tar WebDataset: <chain>.mp3, <chain>.json, <chain>.moss.npy
209
+ traj-t80-NNNNN.parquet one row per chain, all columns below
210
+ traj-t80-NNNNN.done per-shard verification counts
211
+ ```
212
+
213
+ ## Loading
214
+
215
+ ```python
216
+ import glob, json, io, tarfile
217
+ import numpy as np, soundfile as sf, pyarrow.parquet as pq
218
+
219
+ # metadata for the whole tier
220
+ meta = pq.read_table(sorted(glob.glob("traj-t80-*.parquet"))).to_pandas()
221
+ print(len(meta), "chains")
222
+
223
+ # the nested ladder is a filter, not a re-download
224
+ hard = meta[meta.tier_max >= 0.80]
225
+
226
+ # one chain, audio + codes + captions
227
+ with tarfile.open("traj-t80-00000.tar") as tf:
228
+ names = [m.name for m in tf.getmembers() if m.name.endswith(".mp3")]
229
+ stem = names[0][:-4]
230
+ wav, sr = sf.read(io.BytesIO(tf.extractfile(stem + ".mp3").read()))
231
+ codes = np.load(io.BytesIO(tf.extractfile(stem + ".moss.npy").read()))
232
+ info = json.loads(tf.extractfile(stem + ".json").read())
233
+
234
+ print(codes.shape, sr) # (frames, 12) uint16, 48000
235
+ assert codes.shape[0] == int(len(wav)/sr*12.5)
236
+ print(info["caption_general_a"]) # voice only
237
+ print(info["caption_general_b"]) # voice + emotions
238
+ print(info["script"]) # inline screenplay
239
+ for s in info["segments"]:
240
+ print(s["start"], s["burst_note"], s["tag"], s["text"][:60])
241
+ ```
242
+
243
+ ## Two nesting selectors, both shipped
244
+
245
+ `tNN` columns (**the default**) select `qmax >= T` under each row's own rule. Nested by
246
+ construction for both arms.
247
+
248
+ `pcNN` columns select the packer's own per-cell population (`T == that tier's own T`).
249
+ For `vprof_vc` these were packed **independently per cell** with a fresh `used` mask, so
250
+ each packing had re-packing freedom a nested subset cannot have. That is why the per-cell
251
+ high-T counts look larger — they are **not subsets of anything**.
252
+
253
+ > **`pcNN` must never be summed with, differenced against, or nested inside `tNN`.** They
254
+ > are two different selections of the same underlying chains, not two parts of one.
255
+
256
+ ## Source datasets and licences
257
+
258
+ | source | what it is | licence |
259
+ |---|---|---|
260
+ | `emolia` | YODAS-derived emotional speech | CC-BY-4.0 |
261
+ | `kartoffelphon` | German speech (~51 % librivox) | CC-BY-4.0 · **held pending review** |
262
+ | `mls` | Multilingual LibriSpeech | CC-BY-4.0 |
263
+ | `eurospeech` | European parliamentary speech | CC-BY-4.0 |
264
+ | `vprof_vc` | synthetic voice profiles, Chatterbox-VC + SIDON | see note below |
265
+ | `snippets` | short reference snippets | CC-BY-4.0 |
266
+
267
+ `podcast` and `evasnippets` are **excluded from every public release** — their per-item
268
+ provenance is unknown or unclear and they are not openly redistributable.
269
+
270
+ `kartoffelphon` is excluded from the CLEAN releases **pending a licensing review, not for
271
+ any data defect**: ~51 % is librivox (public domain), the remainder is podcast-provenance
272
+ material. Its coverage is excellent (100 % `-id` speaker embeddings, the best of any
273
+ source). Every tier records `kartoffelphon_contribution` so the effect of clearing it is
274
+ visible without a rebuild.
275
+
276
+ Annotations are CC-BY-4.0. The generated voice-profile audio derives in part from EmoLia.
277
+
278
+ ## Honest limitations
279
+
280
+ * **`vprof_vc` trajectories are constructed, not observed.** Takes are independent
281
+ renditions of *different texts* by one cloned voice; the ordering is imposed by the
282
+ packer. They carry no speaker-identity risk and no natural time axis. At the top of the
283
+ ladder they are almost the entire corpus.
284
+ * **Five emotions cannot be trajectory endpoints under the two-sided rules** — Awe,
285
+ Distress, Sadness, Disappointment, Helplessness. Their raw scores are so zero-inflated
286
+ that the normalised value is effectively two-valued, so no per-step cap ≤0.25 can be
287
+ satisfied. This is arithmetic, not missing data. `PXR` recovers four of the five.
288
+ * **EmoLia identity uses a timbre embedding**, not the verification model. Where
289
+ `cos_source == "orange-tbr"` the 0.80 threshold is applied to
290
+ `Orange/Speaker-wavLM-tbr`; store-to-store the equivalent of `-id >= 0.80` is
291
+ `-tbr >= 0.788`, so this is fractionally *stricter*, but it is a different space and its
292
+ pass rate reads ~7 points optimistic.
293
+ * **The emotion scorer is weak in absolute terms** — 8.0 % top-1 against the requested
294
+ label on the voice profiles (chance 2.5 %). Selection is always on measured scores,
295
+ never on a requested-emotion label.
296
+ * **Emotion clauses are common at chain level.** With 40 heads each gated at its own top
297
+ decile, P(none clears) ≈ 0.9^40 ≈ 1.5 %, so ~98 % of chains name at least one emotion.
298
+ That is the arithmetic of a 40-way gate, not evidence every chain is emotive.
299
+ * Language is `lang_iso_fixed`, post-correction. `other %` is dominated by the
300
+ multilingual sources.
301
+
302
+ ## Citation
303
+
304
+ ```bibtex
305
+ @misc{laion_traj_t80,
306
+ title = {LAION Emotional-Trajectory Speech, tier T>=0.80},
307
+ author = {LAION},
308
+ year = {2026},
309
+ url = {https://huggingface.co/datasets/laion/laion-emotional-trajectory-t80}
310
+ }
311
+ ```