MahiA commited on
Commit
f8984af
·
verified ·
1 Parent(s): e11a46a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +42 -1
README.md CHANGED
@@ -1 +1,42 @@
1
- vhg
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ ---
4
+
5
+
6
+ # VocalSound
7
+
8
+ This is an audio classification dataset for **Vocal Sound Classification**.
9
+
10
+ **Classes = 6   ,   Split = Train-Test**
11
+
12
+ ## Structure
13
+
14
+ - `audios` folder contains audio files.
15
+ - `train.csv` for training split and `test.csv` for the testing split.
16
+
17
+ ## Download
18
+ ```python
19
+ import os
20
+ import zipfile
21
+ import shutil
22
+ import huggingface_hub
23
+ audio_datasets_path = "DATASET_PATH/Audio-Datasets"
24
+ if not os.path.exists(audio_datasets_path): print(f"Given {audio_datasets_path=} does not exist. Specify a valid path ending with 'Audio-Datasets' folder.")
25
+ huggingface_hub.snapshot_download(repo_id="MahiA/VocalSound", repo_type="dataset", local_dir=os.path.join(audio_datasets_path, "VocalSound"))
26
+ zipfile_path = os.path.join(audio_datasets_path, 'VocalSound', 'VocalSound.zip')
27
+ with zipfile.ZipFile(zipfile_path,"r") as zip_ref:
28
+ zip_ref.extractall(os.path.join(audio_datasets_path, 'VocalSound'))
29
+ shutil.move(os.path.join(audio_datasets_path, 'VocalSound','VocalSound', 'audios'), os.path.join(audio_datasets_path, 'VocalSound'))
30
+ shutil.move(os.path.join(audio_datasets_path, 'VocalSound','VocalSound', 'train.csv'), os.path.join(audio_datasets_path, 'VocalSound'))
31
+ shutil.move(os.path.join(audio_datasets_path, 'VocalSound','VocalSound', 'test.csv'), os.path.join(audio_datasets_path, 'VocalSound'))
32
+ shutil.rmtree(os.path.join(audio_datasets_path, 'VocalSound', 'VocalSound'))
33
+ os.remove(zipfile_path)
34
+ ```
35
+
36
+ ## Acknowledgment
37
+
38
+ This dataset is a slightly processed/restructured version of data originally released by [Source](https://github.com/YuanGongND/vocalsound).<br>
39
+ Please refer to the respective source for their licensing details and any additional information.
40
+
41
+ ## Contact
42
+ For questions or feedback, please create an issue.