NikiPshg commited on
Commit
0da8c96
·
verified ·
1 Parent(s): 20e63c2

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +186 -0
README.md ADDED
@@ -0,0 +1,186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ task_categories:
4
+ - text-to-speech
5
+ - automatic-speech-recognition
6
+ language:
7
+ - ru
8
+ pretty_name: OpenSTT annotate by Balalaika
9
+ ---
10
+
11
+ # OpenSTT Annotated by Balalaika
12
+
13
+ **A curated Russian speech dataset for advanced speech generative tasks.**
14
+
15
+ ## Overview
16
+
17
+ **OpenSTT Annotated by Balalaika** is a high-quality Russian speech corpus, meticulously filtered and annotated by the **lab260 team at MTUCI** with the latest version of our pipeline, **BALALAIKA**.
18
+
19
+ - **Language:** Russian only
20
+ - **Genres:** Podcasts, public speech, YouTube, audiobooks, phone calls, TTS, and more
21
+ - **Source:** OpenSTT ([GitHub link](https://github.com/snakers4/open_stt?tab=readme-ov-file))
22
+ - **License:** CC BY-NC 4.0 (same as original OpenSTT)
23
+ - **Total Duration After Filtering:** 278.6 hours (from over 1000 hours raw)
24
+ - **Format:** Parquet files with split-wise annotation
25
+
26
+ ***
27
+
28
+ ## Usage
29
+
30
+ **Primary Use Cases:**
31
+ - Text-to-Speech (TTS) generation
32
+ - Automatic Speech Recognition (ASR)
33
+ - Analysis of accent, stress, and prosody
34
+ - Russian speech technology research
35
+
36
+ ### 1. Download the dataset
37
+
38
+ ### 2. Extract the files
39
+
40
+ ```basg
41
+ for archive in *.tar.gz; do
42
+ dir="${archive%.tar.gz}"
43
+ mkdir -p "$dir"
44
+ tar -xzvf "$archive" -C "$dir"
45
+ rm "$archive"
46
+ done
47
+ ```
48
+
49
+ ### 3. Load data in PyTorch
50
+
51
+ ```python
52
+ from pathlib import Path
53
+ import pandas as pd
54
+ from torch.utils.data import Dataset
55
+ import torchaudio
56
+
57
+ class ParquetConcatDataset(Dataset):
58
+ def __init__(self, parquet_dir, audio_root, parse_fn=None):
59
+ self.parquet_dir = Path(parquet_dir)
60
+ self.audio_root = Path(audio_root)
61
+
62
+ parquet_files = list(self.parquet_dir.glob("*.parquet"))
63
+ dfs = [pd.read_parquet(f) for f in parquet_files]
64
+ self.df = pd.concat(dfs, ignore_index=True)
65
+
66
+ def __len__(self):
67
+ return len(self.df)
68
+
69
+ def __getitem__(self, idx):
70
+ row = self.df.iloc[idx]
71
+ audio_path = self.audio_root / row["filepath"]
72
+ waveform, sample_rate = torchaudio.load(audio_path)
73
+ return {
74
+ "audio_path": str(audio_path),
75
+ "waveform": waveform,
76
+ "sample_rate": sample_rate,
77
+ "nisqa_mos": row["mos_pred"],
78
+ "nisqa_noi": row["noi_pred"],
79
+ "nisqa_dis": row["dis_pred"],
80
+ "nisqa_col": row["col_pred"],
81
+ "nisqa_loud": row["loud_pred"],
82
+ "nisqa_model": row["model"],
83
+ "is_single_speaker": bool(row["is_single_speaker"]),
84
+ "accented_text": row["accent"],
85
+ "asr_text": row["rover"],
86
+ "punctuated_text": row["punct"],
87
+ "silence_percent": row["silence_percent"],
88
+ "total_duration": row["total_duration"],
89
+ "max_silence_duration": row["max_silence_duration"]
90
+ }
91
+
92
+ # Example usage
93
+ ds = ParquetConcatDataset(
94
+ PATH_TO_PARQUETS_DIR,
95
+ PATH_TO_AUDIO_ROOT
96
+ )
97
+ ```
98
+
99
+ `PATH_TO_PARQUETS_DIR`: Path to the folder containing all .parquet files with metadata and annotations for the dataset.
100
+
101
+ `PATH_TO_AUDIO_ROOT`: Path to the root directory containing all audio subfolders and files referenced by filepath columns in the metadata.
102
+ ***
103
+
104
+ ## Data Processing & Annotation
105
+
106
+ Our pipeline applies **rigorous filtering and enrichment** steps:
107
+
108
+ 1. **Removed speech segments** shorter than 3 seconds
109
+ 2. **Filtered segments** with [NISQA](https://github.com/gabrielmittag/NISQA/tree/master/nisqa) MOS < 4.0 for quality assurance
110
+ 3. **Excluded segments with multiple speakers** (via [pyannotate diarization](https://huggingface.co/pyannote/speaker-diarization-community-1))
111
+ 4 **Filtered segments** with [VAD](https://github.com/snakers4/silero-vad) silence_percent > 30.0 % and max_silence_duration > 1,2 for quality assurance
112
+ 4. **Filtered out speech with music background** (custom music detector)
113
+ 5. **Revised transcriptions:** Crowd-sourced with multiple ASRs, fused via ROVER ([T-one](https://github.com/voicekit-team/T-one/tree/main), [GigaAMv3-rnnt, GigaAMv3-ctc, GigaAMv3-ctc-lm](https://github.com/salute-developers/GigaAM), [vosk](https://huggingface.co/alphacep/vosk-model-ru))
114
+ 6. **Punctuation added** using [RuPunct](https://huggingface.co/RUPunct/RUPunct_big)
115
+ 7. **Stress marks added** via [RuAccent](https://github.com/Den4ikAI/ruaccent)
116
+ 8. **IPA phonemization** performed with our own neural model
117
+
118
+ All **annotation fields** are handled and provided separately for transparency and flexibility.
119
+
120
+ ***
121
+
122
+ ## Data Structure
123
+
124
+ - **Annotation storage:** Parquet files
125
+ - **Speech storage:** .tar.gz files with speech segments in .opus
126
+ - **Splitting:** Follows OpenSTT splits
127
+ - **Annotations:** Each sample includes separate fields for:
128
+ - **Filepath**
129
+ - **Quality metrics: MOS, NOI, DIS, COL, LOUD**
130
+ - **Model for quality assesment**
131
+ - **Transcript with stresses and pucntuation**
132
+ - **Transcript after ROVER**
133
+ - **Transcript with punctuation**
134
+ - **IPA transcription**
135
+ - **Speaker diarization flag**
136
+
137
+
138
+
139
+ ***
140
+
141
+ ## How to Cite
142
+
143
+ Please cite the following paper if you use this dataset in research:
144
+ ```
145
+ @misc{borodin2025datacentricframeworkaddressingphonetic,
146
+ title={A Data-Centric Framework for Addressing Phonetic and Prosodic Challenges in Russian Speech Generative Models},
147
+ author={Kirill Borodin and Nikita Vasiliev and Vasiliy Kudryavtsev and Maxim Maslov and Mikhail Gorodnichev and Oleg Rogov and Grach Mkrtchian},
148
+ year={2025},
149
+ eprint={2507.13563},
150
+ archivePrefix={arXiv},
151
+ primaryClass={cs.CL},
152
+ url={https://arxiv.org/abs/2507.13563},
153
+ }
154
+ ```
155
+
156
+ ***
157
+
158
+ ## Contact
159
+
160
+ - Telegram: [@korallll_ai](https://t.me/korallll_ai)
161
+ - Email: [k.n.borodin@mtuci.ru](mailto:k.n.borodin@mtuci.ru)
162
+
163
+ ***
164
+
165
+ ## Links
166
+
167
+ - [Balalaka annotation pipeline](https://github.com/mtuciru/balalaika/tree/main/src)
168
+ - [Other datasets annotated by BALALAIKA](https://huggingface.co/collections/MTUCI/balalaika-dataset)
169
+ - [Custom models' inference implementaton](https://huggingface.co/collections/MTUCI/balalaika-models)
170
+ - [Paper (arXiv)](https://arxiv.org/pdf/2507.13563)
171
+ - [OpenSTT repository](https://github.com/snakers4/open_stt?tab=readme-ov-file)
172
+ - [NISQA](https://github.com/gabrielmittag/NISQA/tree/master/nisqa)
173
+ - [pyannotate diarization](https://huggingface.co/pyannote/speaker-diarization-community-1)
174
+ - [T-one](https://github.com/voicekit-team/T-one/tree/main)
175
+ - [GigaAMv2-rnnt, GigaAMv2-ctc, GigaAMv2-ctc-lm](https://github.com/salute-developers/GigaAM)
176
+ - [vosk](https://huggingface.co/alphacep/vosk-model-ru)
177
+ - [RuPunct](https://huggingface.co/RUPunct/RUPunct_big)
178
+ - [RuAccent](https://github.com/Den4ikAI/ruaccent)
179
+
180
+ ***
181
+
182
+ ## License
183
+
184
+ Distributed under **CC BY-NC 4.0**, matching original OpenSTT terms.
185
+
186
+ ***