aangelakis commited on
Commit
4e4bc38
·
verified ·
1 Parent(s): e97fb2d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -3
README.md CHANGED
@@ -78,10 +78,19 @@ You can load this dataset directly in Python using the Hugging Face `datasets` l
78
  ```python
79
  from datasets import load_dataset
80
 
81
- dataset = load_dataset("aangelakis/STOMA", split="all")
 
82
 
83
- # Listen to the first example
84
- print(dataset[0])
 
 
 
 
 
 
 
 
85
  ```
86
 
87
  ## License
 
78
  ```python
79
  from datasets import load_dataset
80
 
81
+ # Download and Load the dataset
82
+ dataset = load_dataset("aangelakis/STOMA", data_files="data/*.parquet", split="full")
83
 
84
+ # Inspect the first example
85
+ sample = dataset[0]
86
+
87
+ # Print the Greek text
88
+ print("Text:", sample["text"])
89
+
90
+ # Play the audio
91
+ # The 'audio' column is automatically decoded into a dictionary with 'array' and 'sampling_rate'
92
+ audio_data = sample["audio"]["array"]
93
+ sampling_rate = sample["audio"]["sampling_rate"]
94
  ```
95
 
96
  ## License