Elyordev commited on
Commit
1f58227
Β·
verified Β·
1 Parent(s): b015b0a

Upload 2 files

Browse files
Files changed (2) hide show
  1. dataset_info.json +11 -7
  2. readme.md +27 -14
dataset_info.json CHANGED
@@ -1,5 +1,6 @@
1
  {
2
- "description": "This dataset is designed for speech-to-text tasks and contains audio files stored in tar archives along with corresponding transcript files in TSV format. The data is organized for the Uzbek language and split into train, test, and validation sets.",
 
3
  "homepage": "https://huggingface.co/datasets/Elyordev/Dataset_STT",
4
  "license": "MIT",
5
  "splits": {
@@ -20,13 +21,16 @@
20
  }
21
  },
22
  "features": {
 
23
  "audio": {
24
- "dtype": "string",
25
- "description": "Audio files are stored as tar archives containing the actual audio data."
26
  },
27
- "transcript": {
28
- "dtype": "string",
29
- "description": "Transcript files in TSV format containing the corresponding transcriptions for the audio data."
30
- }
 
 
31
  }
32
  }
 
1
  {
2
+ "description": "This dataset is designed for speech-to-text (STT) tasks with a focus on the Uzbek language. It contains audio recordings stored as tar archives along with their corresponding transcript files in TSV format.",
3
+ "citation": "@misc{dataset_stt2025, title={Dataset_STT}, author={Your Name}, year={2025}}",
4
  "homepage": "https://huggingface.co/datasets/Elyordev/Dataset_STT",
5
  "license": "MIT",
6
  "splits": {
 
21
  }
22
  },
23
  "features": {
24
+ "id": "string",
25
  "audio": {
26
+ "type": "audio",
27
+ "sampling_rate": 16000
28
  },
29
+ "sentence": "string",
30
+ "duration": "float",
31
+ "age": "string",
32
+ "gender": "string",
33
+ "accents": "string",
34
+ "locale": "string"
35
  }
36
  }
readme.md CHANGED
@@ -22,27 +22,40 @@ Dataset_STT/
22
  β”‚ β”‚ └── validation/
23
  β”‚ β”‚ └── validation.tsv
24
 
 
25
  ## Files Description
26
 
27
- - **Audio Files (`*.tar`):**
28
- The audio files are provided as tar archives containing the actual audio data.
29
- - `audio/uz/train/train.tar`: Training audio files.
30
- - `audio/uz/test/test.tar`: Testing audio files.
31
- - `audio/uz/validation/validation.tar`: Validation audio files.
 
 
 
 
 
 
 
 
32
 
33
- - **Transcript Files (`*.tsv`):**
34
- The transcript files are in TSV (Tab-Separated Values) format and contain the text transcriptions corresponding to the audio data.
35
- - `transcript/uz/train/train.tsv`: Training transcripts.
36
- - `transcript/uz/test/test.tsv`: Testing transcripts.
37
- - `transcript/uz/validation/validation.tsv`: Validation transcripts.
38
 
39
  ## How to Load the Dataset
40
 
41
- You can load this dataset using the Hugging Face [datasets](https://huggingface.co/docs/datasets/) library. For example:
42
 
43
  ```python
44
  from datasets import load_dataset
45
 
46
- # Load the dataset from the Hub
47
- dataset = load_dataset("Elyordev/Dataset_STT")
48
- print(dataset)
 
 
 
 
 
 
 
 
22
  β”‚ β”‚ └── validation/
23
  β”‚ β”‚ └── validation.tsv
24
 
25
+
26
  ## Files Description
27
 
28
+ - **Audio Files:**
29
+ The audio files are stored as tar archives for each data split (train, test, and validation). Each tar archive contains the actual audio recordings (e.g., in MP3 format).
30
+
31
+ - **Transcript Files:**
32
+ The transcript files are provided in TSV format with the following columns:
33
+ - `id`
34
+ - `path` (the filename of the audio file within the tar archive)
35
+ - `sentence` (the transcription)
36
+ - `duration` (audio duration in seconds)
37
+ - `age`
38
+ - `gender`
39
+ - `accents`
40
+ - `locale`
41
 
42
+ - **Custom Loader (`dataset_stt.py`):**
43
+ This script extracts audio files from the tar archives and pairs them with their metadata from the transcript TSV files. It returns the audio data using the `datasets.Audio` feature (with a sampling rate of 16000 Hz), which enables interactive playback in the Hugging Face dataset viewer.
 
 
 
44
 
45
  ## How to Load the Dataset
46
 
47
+ You can load the dataset using the Hugging Face `datasets` library. For example:
48
 
49
  ```python
50
  from datasets import load_dataset
51
 
52
+ data_files = {
53
+ "train": {"audio": "audio/uz/train/train.tar", "transcript": "transcript/uz/train/train.tsv"},
54
+ "test": {"audio": "audio/uz/test/test.tar", "transcript": "transcript/uz/test/test.tsv"},
55
+ "validation": {"audio": "audio/uz/validation/validation.tar", "transcript": "transcript/uz/validation/validation.tsv"}
56
+ }
57
+
58
+ dataset = load_dataset("Elyordev/Dataset_STT", data_files=data_files)
59
+ print(dataset)
60
+
61
+