ChristianYang commited on
Commit
f806d66
·
verified ·
1 Parent(s): 36d9bed

Add dataset card with duration statistics and schema

Browse files
Files changed (1) hide show
  1. README.md +194 -0
README.md ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-sa-4.0
3
+ language:
4
+ - en
5
+ - zh
6
+ tags:
7
+ - env-tts
8
+ - environment-aware-tts
9
+ - speaker-diarization
10
+ - text-to-speech
11
+ - audio
12
+ - speech-synthesis
13
+ size_categories:
14
+ - 100K<n<1M
15
+ pretty_name: Env-TTS-Clean
16
+ ---
17
+
18
+ # Env-TTS-Clean
19
+
20
+ **Environment-aware text-to-speech training corpus (clean release).** Each row
21
+ pairs four short **24 kHz mono FLAC** clips with aligned transcripts:
22
+
23
+ - an **environment** sample (different speaker, same acoustic scene),
24
+ - a **speaker** reference (same speaker as the target utterance),
25
+ - a **speaker-enhanced** copy of the reference (MossFormer2 speech enhancement),
26
+ - the target **speech** to synthesise,
27
+
28
+ so a model can learn to generate an utterance with both a specified voice and a
29
+ specified environment. This release supersedes the earlier
30
+ [Env-TTS-SD-Corpus](https://huggingface.co/datasets/humanify/Env-TTS-SD-Corpus)
31
+ with a richer schema, higher sample rate, per-clip ASR for all three contexts,
32
+ and two additional meeting sources (AMI, AliMeeting).
33
+
34
+ ## Dataset statistics
35
+
36
+ | metric | value |
37
+ | --- | ---: |
38
+ | **rows** | 189,918 |
39
+ | **on-disk size** | ~119 GB |
40
+ | **Σ `speech_duration`** | **1,542,868.6 s** (**428.6 h**) |
41
+ | **Σ (`environment_audio_duration` + `speaker_audio_duration` + `speech_duration`)** | **4,507,421.5 s** (**1,252.1 h**) |
42
+
43
+ Duration totals were computed on 2026-05-27 by summing the float duration
44
+ columns across all 239 parquet shards (no audio decode).
45
+
46
+ ### Rows by source dataset
47
+
48
+ | `dataset` | rows |
49
+ | --- | ---: |
50
+ | `m3sd` | 108,708 |
51
+ | `aishell4` | 27,924 |
52
+ | `alimeeting` | 25,087 |
53
+ | `ami` | 13,207 |
54
+ | `msdwild` | 9,676 |
55
+ | `chime6` | 5,316 |
56
+
57
+ ## Schema
58
+
59
+ | column | type | description |
60
+ | --- | --- | --- |
61
+ | `environment_audio_source` | binary (FLAC 24 kHz mono) | acoustic-scene reference, 2.5–15 s, from a **different speaker** in the same session |
62
+ | `environment_audio_duration` | float32 | seconds |
63
+ | `environment_audio_text` | string | transcript of the environment clip (gold or Qwen3-ASR) |
64
+ | `speaker_audio_source` | binary (FLAC 24 kHz mono) | speaker-identity reference, 2.5–15 s, **same speaker** as `speech` |
65
+ | `speaker_audio_duration` | float32 | seconds |
66
+ | `speaker_audio_text` | string | transcript of the speaker reference clip |
67
+ | `speaker_audio_source_enhanced` | binary (FLAC 24 kHz mono) | MossFormer2-enhanced version of `speaker_audio_source` |
68
+ | `text` | string | transcript of `speech` |
69
+ | `speech` | binary (FLAC 24 kHz mono) | target utterance, 3–15 s |
70
+ | `speech_duration` | float32 | seconds |
71
+ | `language` | string | `zh` / `en` / `auto` |
72
+ | `dataset` | string | `m3sd` / `aishell4` / `msdwild` / `chime6` / `ami` / `alimeeting` |
73
+ | `conversation_id` | string | unique within the source dataset |
74
+ | `speaker_id` | string | within-conversation diarisation label |
75
+ | `env_id` | string | acoustic-scene identifier (usually `conversation_id`) |
76
+ | `text_source` | string | `original`, `asr`, or `mixed` |
77
+ | `asr_token_count` | int32 | Qwen3-ASR token count for `speech` |
78
+ | `asr_mean_logprob` | float32 | mean log-prob per token for `speech` |
79
+
80
+ ## Source corpora
81
+
82
+ | dataset | nominal hours | language | transcripts in corpus |
83
+ | --- | ---: | --- | --- |
84
+ | **M3SD** (Wu et al., 2025) | 770 | zh / en mixed | ❌ → Qwen3-ASR |
85
+ | **AISHELL-4** (Fu et al., 2021) | 120 | zh | ✅ TextGrid |
86
+ | **MSDWILD** (Liu et al., 2022) | 80 | zh / en mixed | ❌ → Qwen3-ASR |
87
+ | **CHiME-6** (Watanabe et al., 2020) | 40+ | en | ✅ JSON |
88
+ | **AMI** (SDM, diarizers-community) | ~100 | en | ❌ → Qwen3-ASR |
89
+ | **AliMeeting** (OpenSLR 119, far ch.0) | ~120 | zh | ✅ TextGrid |
90
+
91
+ ## Processing pipeline
92
+
93
+ Built with the streaming pipeline in
94
+ [`env-tts-data-pipeline`](https://github.com/ChristianYang/env-tts-data-pipeline)
95
+ (three parallel stages: **download → process → upload**):
96
+
97
+ 1. **download** — stream each source conversation (HF mirrors, OpenSLR tar
98
+ streams, BaiduPCS for M3SD, etc.) into a bounded local cache; emit a JSON
99
+ sentinel when audio is ready.
100
+ 2. **process** — resample to **24 kHz mono**, walk diarisation turns, emit
101
+ 3–15 s `speech` slices with a same-speaker reference (≥2.5 s) and a
102
+ different-speaker environment slice (≥2.5 s, extended into surrounding audio
103
+ when needed). Missing or split transcripts are re-labelled with
104
+ **Qwen3-ASR-1.7B** (vLLM backend). Rows are written as snappy parquet shards
105
+ (~800 rows / shard, 4 shards per HF commit group).
106
+ 3. **upload** — `HfApi.upload_folder` per sealed group with rate limiting and
107
+ resume-safe JSON state under `state/`.
108
+ 4. **enhance** (second pass) — stream each published shard back, run
109
+ **MossFormer2_SE_48K** on `speaker_audio_source`, and fill
110
+ `speaker_audio_source_enhanced` at the same 24 kHz storage rate.
111
+
112
+ DAIEN-style RIR+noise augmentation on the speaker reference is **disabled** in
113
+ this release; environment/speaker decoupling relies on cross-speaker env sampling
114
+ plus MossFormer2 enhancement instead.
115
+
116
+ ## Licensing
117
+
118
+ Released under **CC-BY-SA-4.0**, inheriting the most restrictive terms among
119
+ sources. In particular:
120
+
121
+ - **M3SD** — academic / non-commercial research only.
122
+ - **MSDWILD** — X-LANCE research-only agreement.
123
+ - AISHELL-4 (Apache-2.0), CHiME-6 (CC-BY-SA-4.0), AMI, and AliMeeting carry
124
+ their respective open/research terms.
125
+
126
+ Redistributing extracted audio requires complying with each upstream licence.
127
+
128
+ ## Citation
129
+
130
+ Please cite the source papers when using this corpus:
131
+
132
+ ```bibtex
133
+ @article{wu2025m3sd,
134
+ title={M3SD: Multi-modal, Multi-scenario and Multi-language Speaker
135
+ Diarization Dataset},
136
+ author={Wu, Shilong and others},
137
+ journal={arXiv preprint arXiv:2506.14427},
138
+ year={2025}
139
+ }
140
+
141
+ @inproceedings{fu2021aishell4,
142
+ title={AISHELL-4: An Open Source Dataset for Speech Enhancement, Separation,
143
+ Recognition and Speaker Diarization in Conference Scenario},
144
+ author={Fu, Yihui and others},
145
+ booktitle={Interspeech},
146
+ year={2021}
147
+ }
148
+
149
+ @inproceedings{liu2022msdwild,
150
+ title={MSDWILD: Multi-modal Speaker Diarization Dataset in the Wild},
151
+ author={Liu, Tao and others},
152
+ booktitle={Interspeech},
153
+ year={2022}
154
+ }
155
+
156
+ @inproceedings{watanabe2020chime6,
157
+ title={CHiME-6 Challenge: Tackling Multispeaker Speech Recognition for
158
+ Unsegmented Recordings},
159
+ author={Watanabe, Shinji and others},
160
+ booktitle={CHiME Workshop},
161
+ year={2020}
162
+ }
163
+ ```
164
+
165
+ ASR re-labelling uses [Qwen3-ASR-1.7B](https://huggingface.co/Qwen/Qwen3-ASR-1.7B).
166
+ Speaker enhancement uses MossFormer2 (ClearVoice).
167
+
168
+ ## Loading
169
+
170
+ ```python
171
+ from datasets import load_dataset
172
+
173
+ ds = load_dataset("ChristianYang/Env-TTS-Clean", split="train", streaming=True)
174
+ row = next(iter(ds))
175
+ print(row["text"])
176
+ print(row["speech_duration"])
177
+ # Audio columns decode automatically when accessed (24 kHz mono).
178
+ ```
179
+
180
+ ## Files on disk
181
+
182
+ ```
183
+ data/
184
+ group_00000/
185
+ manifest.json
186
+ data_000000.parquet
187
+ data_000001.parquet
188
+ ...
189
+ group_00001/
190
+ ...
191
+ ```
192
+
193
+ Each `group_*` directory is one atomic HF commit bundle (typically 4 × 800-row
194
+ parquet shards, snappy-compressed FLAC payloads inside).