Datasets:
Languages:
Greek
Size:
10K - 100K
Tags:
speech_corpus
greek_language
text-to-speech
neural_TTS
speech_synthesis
under_resourced_languages
License:
Update README.md
Browse files
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 |
-
|
|
|
|
| 82 |
|
| 83 |
-
#
|
| 84 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|