Avishii0309 commited on
Commit
20066d7
·
verified ·
1 Parent(s): 3379f1e

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +129 -60
README.md CHANGED
@@ -1,60 +1,129 @@
1
- ---
2
- dataset_info:
3
- features:
4
- - name: audio
5
- dtype:
6
- audio:
7
- sampling_rate: 16000
8
- - name: id
9
- dtype: string
10
- - name: transcript
11
- dtype: string
12
- - name: language
13
- dtype: string
14
- - name: emotion
15
- dtype: string
16
- - name: duration
17
- dtype: float32
18
- - name: confidence
19
- dtype: float32
20
- - name: source_url
21
- dtype: string
22
- - name: human_reviewed
23
- dtype: bool
24
- - name: snr_db
25
- dtype: float32
26
- - name: speech_ratio
27
- dtype: float32
28
- - name: quality_score
29
- dtype: float32
30
- - name: speaker_id
31
- dtype: string
32
- - name: genre
33
- dtype: string
34
- - name: accent
35
- dtype: string
36
- - name: video_id
37
- dtype: string
38
- - name: segment_index
39
- dtype: int32
40
- - name: start_time
41
- dtype: float32
42
- - name: end_time
43
- dtype: float32
44
- splits:
45
- - name: en
46
- num_bytes: 110486845.0
47
- num_examples: 127
48
- - name: hi
49
- num_bytes: 41000921.0
50
- num_examples: 48
51
- download_size: 142535015
52
- dataset_size: 151487766.0
53
- configs:
54
- - config_name: default
55
- data_files:
56
- - split: en
57
- path: data/en-*
58
- - split: hi
59
- path: data/hi-*
60
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ - hi
6
+ tags:
7
+ - tts
8
+ - text-to-speech
9
+ - indian-english
10
+ - hindi
11
+ - speech
12
+ - single-speaker
13
+ - sarvam
14
+ - audio
15
+ task_categories:
16
+ - text-to-speech
17
+ pretty_name: Sarvam Indian TTS Dataset (en-IN + hi-IN)
18
+ size_categories:
19
+ - 1K<n<10K
20
+ ---
21
+
22
+ # Sarvam Indian TTS Dataset
23
+
24
+ A curated Text-to-Speech dataset containing **Indian English** and **Hindi**
25
+ single-speaker audio segments, built as part of the Sarvam AI hiring assignment.
26
+
27
+ ## Dataset Summary
28
+
29
+ | Property | Value |
30
+ |---|---|
31
+ | Total duration | 78.8 minutes |
32
+ | English (en-IN) | 57.5 minutes |
33
+ | Hindi (hi-IN) | 21.3 minutes |
34
+ | Total segments | 175 |
35
+ | Human reviewed | 99.4% |
36
+ | Mean quality score | 92.1/100 |
37
+ | Mean SNR | 49.0 dB |
38
+ | Mean ASR confidence | 0.900 |
39
+
40
+ ## Dataset Card
41
+
42
+ ### Data Collection
43
+
44
+ Audio sourced from YouTube educational and motivational content featuring
45
+ single speakers with minimal background noise. All audio was processed through:
46
+
47
+ 1. **Speaker Diarization** (Sarvam API) — isolate dominant speaker
48
+ 2. **Segmentation** — 15–60 second clips, no overlap
49
+ 3. **Quality Filtering** — SNR ≥ 15 dB, speech ratio ≥ 65%
50
+ 4. **ASR Transcription** (Sarvam saarika:v2) — with word timestamps
51
+ 5. **Emotion Tagging** (Sarvam LLM) — style/prosody labels
52
+ 6. **Human Review** — transcript correction and quality verification
53
+
54
+ ### Audio Format
55
+
56
+ - Format: WAV (PCM 16-bit)
57
+ - Sample rate: 16,000 Hz
58
+ - Channels: Mono
59
+
60
+ ### Schema
61
+
62
+ ```
63
+ id — unique segment identifier
64
+ audio — WAV audio file (HF Audio feature)
65
+ transcript — verbatim speech transcript
66
+ language — en (Indian English) | hi (Hindi)
67
+ emotion — style label (see taxonomy below)
68
+ duration — segment length in seconds
69
+ confidence — ASR confidence score [0, 1]
70
+ source_url — original YouTube URL
71
+ human_reviewed — whether a human verified this segment
72
+ ```
73
+
74
+ ### Emotion Taxonomy
75
+
76
+ - informative: 158
77
+ - emphatic: 16
78
+ - energetic: 1
79
+
80
+ ### Source Videos
81
+
82
+ | Language | Description | Accent |
83
+ |---|---|---|
84
+ | English | Stanford GSB lecture (Matt Abrahams) | American English |
85
+ | English | Indian tech talk | Indian English |
86
+ | Hindi | Hindi motivational speech | Standard Hindi |
87
+ | Hindi | Hindi motivational speech | Standard Hindi |
88
+
89
+ > **Note on English accent**: The primary English source (Stanford lecture)
90
+ > features an American English speaker. This is documented transparently in
91
+ > the `accent` metadata field. The Sarvam en-IN ASR model was used for
92
+ > transcription regardless.
93
+
94
+ ### Pipeline
95
+
96
+ Full reproducible pipeline available at: https://github.com/[username]/sarvam-tts-dataset
97
+
98
+ ```
99
+ scripts/
100
+ 00_setup_env.py # environment validation
101
+ 01_download_audio.py # yt-dlp download
102
+ 02_convert_audio.py # ffmpeg → 16kHz mono WAV
103
+ 03_diarization.py # Sarvam speaker diarization
104
+ 04_segment_audio.py # 15–60s segmentation
105
+ 05_asr_transcription.py # Sarvam saarika:v2 ASR
106
+ 06_emotion_tagging.py # Sarvam LLM emotion labels
107
+ 07_quality_scoring.py # composite quality score
108
+ 08_human_review.py # interactive CLI review
109
+ 09_build_metadata.py # final CSV/JSONL assembly
110
+ 10_dataset_statistics.py # stats + visualisations
111
+ 11_upload_huggingface.py # HF Hub upload
112
+ ```
113
+
114
+ ### Licensing
115
+
116
+ - Dataset: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
117
+ - Source videos used under YouTube's fair use provisions for research/education
118
+ - Transcripts are derived works; see individual source URLs for original content
119
+
120
+ ### Citation
121
+
122
+ ```bibtex
123
+ @dataset{sarvam_tts_dataset_2025,
124
+ title={Sarvam Indian TTS Dataset},
125
+ year={2025},
126
+ url={https://huggingface.co/Avishii0309/sarvam-tts-dataset},
127
+ note={Indian English and Hindi single-speaker TTS dataset}
128
+ }
129
+ ```