Aybee5 commited on
Commit
f01103e
·
verified ·
1 Parent(s): 852a35b

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +15 -2
README.md CHANGED
@@ -1,10 +1,15 @@
1
  ---
 
 
 
 
 
 
2
  language:
3
  - ha
4
  license: mit
5
  task_categories:
6
  - text-to-speech
7
- - automatic-speech-recognition
8
  size_categories:
9
  - 1K<n<10K
10
  tags:
@@ -12,6 +17,7 @@ tags:
12
  - tts
13
  - speech
14
  - audio
 
15
  pretty_name: Hausa TTS Dataset
16
  ---
17
 
@@ -55,15 +61,22 @@ Each example contains:
55
  ### Basic Loading
56
 
57
  ```python
58
- from datasets import load_dataset
59
 
 
60
  dataset = load_dataset("Aybee5/HausaTTSEmbed", split="train")
 
 
 
 
61
  print(f"Loaded {len(dataset)} samples")
62
 
63
  # Access first sample
64
  sample = dataset[0]
65
  print(f"Text: {sample['text']}")
 
66
  print(f"Audio shape: {sample['audio']['array'].shape}")
 
67
  ```
68
 
69
  ### For Unsloth TTS Training
 
1
  ---
2
+ configs:
3
+ - config_name: default
4
+ data_files:
5
+ - split: train
6
+ path: "data/train-*.parquet"
7
+ default: true
8
  language:
9
  - ha
10
  license: mit
11
  task_categories:
12
  - text-to-speech
 
13
  size_categories:
14
  - 1K<n<10K
15
  tags:
 
17
  - tts
18
  - speech
19
  - audio
20
+ - multi-speaker
21
  pretty_name: Hausa TTS Dataset
22
  ---
23
 
 
61
  ### Basic Loading
62
 
63
  ```python
64
+ from datasets import load_dataset, Audio
65
 
66
+ # Load dataset
67
  dataset = load_dataset("Aybee5/HausaTTSEmbed", split="train")
68
+
69
+ # IMPORTANT: Cast audio column to Audio type to enable audio loading
70
+ dataset = dataset.cast_column("audio", Audio(sampling_rate=22050))
71
+
72
  print(f"Loaded {len(dataset)} samples")
73
 
74
  # Access first sample
75
  sample = dataset[0]
76
  print(f"Text: {sample['text']}")
77
+ print(f"Speaker: {sample['speaker_id']}")
78
  print(f"Audio shape: {sample['audio']['array'].shape}")
79
+ print(f"Sample rate: {sample['audio']['sampling_rate']}")
80
  ```
81
 
82
  ### For Unsloth TTS Training