Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- =4.57 +18 -0
- TRAIN_ON_COLAB.ipynb +112 -0
- TRAIN_YARNGPT_COLAB.ipynb +440 -0
- YARNGPT_TRAINING_GUIDE.md +190 -0
- create_nigerian_speakers.py +190 -0
- datasets/line_index_female.tsv +0 -0
- datasets/line_index_male.tsv +0 -0
- datasets/nigerian_cv/.gitattributes +59 -0
- datasets/nigerian_cv/english/test-00000-of-00001.parquet +3 -0
- datasets/nigerian_cv/english/train-00000-of-00001.parquet +3 -0
- datasets/nigerian_cv/english/validation-00000-of-00001.parquet +3 -0
- datasets/nigerian_cv/hausa/test-00000-of-00001.parquet +3 -0
- datasets/nigerian_cv/hausa/train-00000-of-00001.parquet +3 -0
- datasets/nigerian_cv/hausa/validation-00000-of-00001.parquet +3 -0
- datasets/nigerian_cv/igbo/test-00000-of-00001.parquet +3 -0
- datasets/nigerian_cv/igbo/train-00000-of-00001.parquet +3 -0
- datasets/nigerian_cv/igbo/validation-00000-of-00001.parquet +3 -0
- datasets/nigerian_cv/yoruba/test-00000-of-00001.parquet +3 -0
- datasets/nigerian_cv/yoruba/train-00000-of-00001.parquet +3 -0
- datasets/nigerian_cv/yoruba/validation-00000-of-00001.parquet +3 -0
- datasets/nigerian_pidgin/.gitattributes +58 -0
- datasets/nigerian_pidgin/data/test-00000-of-00001-16c049b6814bb7ff.parquet +3 -0
- datasets/nigerian_pidgin/data/train-00000-of-00002-06caf65bef6a8834.parquet +3 -0
- datasets/nigerian_pidgin/data/train-00001-of-00002-541a3212bc85a73b.parquet +3 -0
- datasets/nigerian_pidgin/data/validation-00000-of-00001-b91747625e760fc5.parquet +3 -0
- datasets/openslr_yoruba/LICENSE +427 -0
- datasets/openslr_yoruba/line_index.tsv +0 -0
- datasets/openslr_yoruba/yof_00295_00020329077.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00024634140.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00061502962.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00069502356.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00072176292.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00092049886.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00099759266.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00134108651.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00136402910.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00151151204.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00154186764.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00161816699.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00216817283.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00236719811.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00248436001.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00278884696.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00318039388.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00334963468.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00427144639.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00434743286.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00444601186.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00480434341.wav +3 -0
- datasets/openslr_yoruba/yof_00295_00564596981.wav +3 -0
=4.57
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Requirement already satisfied: transformers in ./venv/lib/python3.12/site-packages (4.40.0)
|
| 2 |
+
Requirement already satisfied: filelock in ./venv/lib/python3.12/site-packages (from transformers) (3.29.0)
|
| 3 |
+
Requirement already satisfied: huggingface-hub<1.0,>=0.19.3 in ./venv/lib/python3.12/site-packages (from transformers) (0.36.2)
|
| 4 |
+
Requirement already satisfied: numpy>=1.17 in ./venv/lib/python3.12/site-packages (from transformers) (2.4.4)
|
| 5 |
+
Requirement already satisfied: packaging>=20.0 in ./venv/lib/python3.12/site-packages (from transformers) (26.2)
|
| 6 |
+
Requirement already satisfied: pyyaml>=5.1 in ./venv/lib/python3.12/site-packages (from transformers) (6.0.3)
|
| 7 |
+
Requirement already satisfied: regex!=2019.12.17 in ./venv/lib/python3.12/site-packages (from transformers) (2026.4.4)
|
| 8 |
+
Requirement already satisfied: requests in ./venv/lib/python3.12/site-packages (from transformers) (2.33.1)
|
| 9 |
+
Requirement already satisfied: tokenizers<0.20,>=0.19 in ./venv/lib/python3.12/site-packages (from transformers) (0.19.1)
|
| 10 |
+
Requirement already satisfied: safetensors>=0.4.1 in ./venv/lib/python3.12/site-packages (from transformers) (0.7.0)
|
| 11 |
+
Requirement already satisfied: tqdm>=4.27 in ./venv/lib/python3.12/site-packages (from transformers) (4.67.3)
|
| 12 |
+
Requirement already satisfied: fsspec>=2023.5.0 in ./venv/lib/python3.12/site-packages (from huggingface-hub<1.0,>=0.19.3->transformers) (2026.2.0)
|
| 13 |
+
Requirement already satisfied: hf-xet<2.0.0,>=1.1.3 in ./venv/lib/python3.12/site-packages (from huggingface-hub<1.0,>=0.19.3->transformers) (1.4.3)
|
| 14 |
+
Requirement already satisfied: typing-extensions>=3.7.4.3 in ./venv/lib/python3.12/site-packages (from huggingface-hub<1.0,>=0.19.3->transformers) (4.15.0)
|
| 15 |
+
Requirement already satisfied: charset_normalizer<4,>=2 in ./venv/lib/python3.12/site-packages (from requests->transformers) (3.4.7)
|
| 16 |
+
Requirement already satisfied: idna<4,>=2.5 in ./venv/lib/python3.12/site-packages (from requests->transformers) (3.13)
|
| 17 |
+
Requirement already satisfied: urllib3<3,>=1.26 in ./venv/lib/python3.12/site-packages (from requests->transformers) (2.6.3)
|
| 18 |
+
Requirement already satisfied: certifi>=2023.5.7 in ./venv/lib/python3.12/site-packages (from requests->transformers) (2026.4.22)
|
TRAIN_ON_COLAB.ipynb
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "markdown",
|
| 5 |
+
"metadata": {},
|
| 6 |
+
"source": [
|
| 7 |
+
"# Nigerian Languages TTS Training (XTTS v2)\n",
|
| 8 |
+
"Train XTTS v2 for Yoruba, Hausa, Igbo, and Pidgin.\n",
|
| 9 |
+
"\n",
|
| 10 |
+
"**Run this on Google Colab with GPU runtime!**"
|
| 11 |
+
]
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"cell_type": "code",
|
| 15 |
+
"execution_count": null,
|
| 16 |
+
"metadata": {},
|
| 17 |
+
"outputs": [],
|
| 18 |
+
"source": [
|
| 19 |
+
"# 1. Check GPU\n",
|
| 20 |
+
"!nvidia-smi"
|
| 21 |
+
]
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"cell_type": "code",
|
| 25 |
+
"execution_count": null,
|
| 26 |
+
"metadata": {},
|
| 27 |
+
"outputs": [],
|
| 28 |
+
"source": [
|
| 29 |
+
"# 2. Install dependencies\n",
|
| 30 |
+
"!pip install coqui-tts torch torchaudio\n",
|
| 31 |
+
"!pip install datasets huggingface_hub"
|
| 32 |
+
]
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"cell_type": "code",
|
| 36 |
+
"execution_count": null,
|
| 37 |
+
"metadata": {},
|
| 38 |
+
"outputs": [],
|
| 39 |
+
"source": [
|
| 40 |
+
"# 3. Download Nigerian datasets\n",
|
| 41 |
+
"from datasets import load_dataset\n",
|
| 42 |
+
"\n",
|
| 43 |
+
"# Nigerian Common Voice\n",
|
| 44 |
+
"yoruba = load_dataset('benjaminogbonna/nigerian_common_voice_dataset', 'yoruba', split='train')\n",
|
| 45 |
+
"hausa = load_dataset('benjaminogbonna/nigerian_common_voice_dataset', 'hausa', split='train')\n",
|
| 46 |
+
"igbo = load_dataset('benjaminogbonna/nigerian_common_voice_dataset', 'igbo', split='train')\n",
|
| 47 |
+
"\n",
|
| 48 |
+
"print(f'Yoruba: {len(yoruba)} samples')\n",
|
| 49 |
+
"print(f'Hausa: {len(hausa)} samples')\n",
|
| 50 |
+
"print(f'Igbo: {len(igbo)} samples')"
|
| 51 |
+
]
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"cell_type": "code",
|
| 55 |
+
"execution_count": null,
|
| 56 |
+
"metadata": {},
|
| 57 |
+
"outputs": [],
|
| 58 |
+
"source": [
|
| 59 |
+
"# 4. Download XTTS v2 base model\n",
|
| 60 |
+
"from TTS.api import TTS\n",
|
| 61 |
+
"\n",
|
| 62 |
+
"tts = TTS('tts_models/multilingual/multi-dataset/xtts_v2', gpu=True)\n",
|
| 63 |
+
"print('XTTS v2 loaded!')"
|
| 64 |
+
]
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"cell_type": "code",
|
| 68 |
+
"execution_count": null,
|
| 69 |
+
"metadata": {},
|
| 70 |
+
"outputs": [],
|
| 71 |
+
"source": [
|
| 72 |
+
"# 5. Test voice cloning with Nigerian audio\n",
|
| 73 |
+
"# This uses a reference audio to clone the voice - no training needed!\n",
|
| 74 |
+
"\n",
|
| 75 |
+
"# Save a sample audio for reference\n",
|
| 76 |
+
"import soundfile as sf\n",
|
| 77 |
+
"sample = yoruba[0]\n",
|
| 78 |
+
"sf.write('reference_yoruba.wav', sample['audio']['array'], sample['audio']['sampling_rate'])\n",
|
| 79 |
+
"\n",
|
| 80 |
+
"# Clone voice and synthesize\n",
|
| 81 |
+
"text = 'Bawo ni, mo n pe oruko mi ni Morpheus.'\n",
|
| 82 |
+
"tts.tts_to_file(\n",
|
| 83 |
+
" text=text,\n",
|
| 84 |
+
" speaker_wav='reference_yoruba.wav',\n",
|
| 85 |
+
" language='en', # XTTS uses 'en' for African languages\n",
|
| 86 |
+
" file_path='yoruba_output.wav'\n",
|
| 87 |
+
")\n",
|
| 88 |
+
"print('Generated yoruba_output.wav')"
|
| 89 |
+
]
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"cell_type": "code",
|
| 93 |
+
"execution_count": null,
|
| 94 |
+
"metadata": {},
|
| 95 |
+
"outputs": [],
|
| 96 |
+
"source": [
|
| 97 |
+
"# 6. Run XTTS fine-tuning demo\n",
|
| 98 |
+
"# This launches a Gradio interface for fine-tuning\n",
|
| 99 |
+
"!python -m TTS.demos.xtts_ft_demo --share"
|
| 100 |
+
]
|
| 101 |
+
}
|
| 102 |
+
],
|
| 103 |
+
"metadata": {
|
| 104 |
+
"kernelspec": {
|
| 105 |
+
"display_name": "Python 3",
|
| 106 |
+
"language": "python",
|
| 107 |
+
"name": "python3"
|
| 108 |
+
}
|
| 109 |
+
},
|
| 110 |
+
"nbformat": 4,
|
| 111 |
+
"nbformat_minor": 4
|
| 112 |
+
}
|
TRAIN_YARNGPT_COLAB.ipynb
ADDED
|
@@ -0,0 +1,440 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "markdown",
|
| 5 |
+
"metadata": {},
|
| 6 |
+
"source": [
|
| 7 |
+
"# YarnGPT Nigerian Languages Fine-tuning\n",
|
| 8 |
+
"\n",
|
| 9 |
+
"This notebook fine-tunes YarnGPT on Nigerian language audio data (Yoruba, Hausa, Igbo, Pidgin).\n",
|
| 10 |
+
"\n",
|
| 11 |
+
"**Requirements:**\n",
|
| 12 |
+
"- Google Colab with GPU (A100 recommended, T4 works too)\n",
|
| 13 |
+
"- Training data in Google Drive or uploaded directly"
|
| 14 |
+
]
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"cell_type": "code",
|
| 18 |
+
"execution_count": null,
|
| 19 |
+
"metadata": {},
|
| 20 |
+
"outputs": [],
|
| 21 |
+
"source": [
|
| 22 |
+
"# Check GPU\n",
|
| 23 |
+
"!nvidia-smi\n",
|
| 24 |
+
"import torch\n",
|
| 25 |
+
"print(f\"CUDA available: {torch.cuda.is_available()}\")\n",
|
| 26 |
+
"print(f\"Device: {torch.cuda.get_device_name(0) if torch.cuda.is_available() else 'CPU'}\")"
|
| 27 |
+
]
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"cell_type": "code",
|
| 31 |
+
"execution_count": null,
|
| 32 |
+
"metadata": {},
|
| 33 |
+
"outputs": [],
|
| 34 |
+
"source": [
|
| 35 |
+
"# Install dependencies\n",
|
| 36 |
+
"!pip install -q transformers datasets accelerate torchaudio\n",
|
| 37 |
+
"!pip install -q outetts uroman inflect\n",
|
| 38 |
+
"!pip install -q huggingface_hub\n",
|
| 39 |
+
"\n",
|
| 40 |
+
"# Download WavTokenizer models\n",
|
| 41 |
+
"!mkdir -p ~/.yarngpt/models\n",
|
| 42 |
+
"!wget -q -O ~/.yarngpt/models/wavtokenizer_mediumdata_frame75_3s_nq1_code4096_dim512_kmeans200_attn.yaml \\\n",
|
| 43 |
+
" https://huggingface.co/novateur/WavTokenizer-medium-speech-75token/resolve/main/wavtokenizer_mediumdata_frame75_3s_nq1_code4096_dim512_kmeans200_attn.yaml\n",
|
| 44 |
+
"!gdown 1-ASeEkrn4HY49yZWHTASgfGFNXdVnLTt -O ~/.yarngpt/models/wavtokenizer_large_speech_320_24k.ckpt"
|
| 45 |
+
]
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"cell_type": "code",
|
| 49 |
+
"execution_count": null,
|
| 50 |
+
"metadata": {},
|
| 51 |
+
"outputs": [],
|
| 52 |
+
"source": [
|
| 53 |
+
"# Mount Google Drive (optional - for data storage)\n",
|
| 54 |
+
"from google.colab import drive\n",
|
| 55 |
+
"drive.mount('/content/drive')\n",
|
| 56 |
+
"\n",
|
| 57 |
+
"# Or upload data directly\n",
|
| 58 |
+
"# from google.colab import files\n",
|
| 59 |
+
"# uploaded = files.upload()"
|
| 60 |
+
]
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"cell_type": "code",
|
| 64 |
+
"execution_count": null,
|
| 65 |
+
"metadata": {},
|
| 66 |
+
"outputs": [],
|
| 67 |
+
"source": [
|
| 68 |
+
"# Download Nigerian Common Voice dataset\n",
|
| 69 |
+
"from datasets import load_dataset\n",
|
| 70 |
+
"\n",
|
| 71 |
+
"# Load datasets\n",
|
| 72 |
+
"yoruba_ds = load_dataset(\"mozilla-foundation/common_voice_17_0\", \"yo\", split=\"train\", trust_remote_code=True)\n",
|
| 73 |
+
"hausa_ds = load_dataset(\"mozilla-foundation/common_voice_17_0\", \"ha\", split=\"train\", trust_remote_code=True)\n",
|
| 74 |
+
"igbo_ds = load_dataset(\"mozilla-foundation/common_voice_17_0\", \"ig\", split=\"train\", trust_remote_code=True)\n",
|
| 75 |
+
"\n",
|
| 76 |
+
"print(f\"Yoruba samples: {len(yoruba_ds)}\")\n",
|
| 77 |
+
"print(f\"Hausa samples: {len(hausa_ds)}\")\n",
|
| 78 |
+
"print(f\"Igbo samples: {len(igbo_ds)}\")"
|
| 79 |
+
]
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"cell_type": "code",
|
| 83 |
+
"execution_count": null,
|
| 84 |
+
"metadata": {},
|
| 85 |
+
"outputs": [],
|
| 86 |
+
"source": [
|
| 87 |
+
"import os\n",
|
| 88 |
+
"import re\n",
|
| 89 |
+
"import json\n",
|
| 90 |
+
"import torch\n",
|
| 91 |
+
"import torchaudio\n",
|
| 92 |
+
"import numpy as np\n",
|
| 93 |
+
"from pathlib import Path\n",
|
| 94 |
+
"from torch.utils.data import Dataset, DataLoader\n",
|
| 95 |
+
"from transformers import AutoModelForCausalLM, AutoTokenizer\n",
|
| 96 |
+
"from outetts.wav_tokenizer.decoder import WavTokenizer\n",
|
| 97 |
+
"from outetts.wav_tokenizer.encoder.utils import convert_audio\n",
|
| 98 |
+
"import uroman as ur\n",
|
| 99 |
+
"import inflect\n",
|
| 100 |
+
"\n",
|
| 101 |
+
"# Configuration\n",
|
| 102 |
+
"MODEL_ID = \"saheedniyi/YarnGPT2\"\n",
|
| 103 |
+
"OUTPUT_DIR = \"/content/yarngpt-nigerian-finetuned\"\n",
|
| 104 |
+
"DEVICE = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n",
|
| 105 |
+
"\n",
|
| 106 |
+
"# WavTokenizer paths\n",
|
| 107 |
+
"MODEL_DIR = os.path.expanduser(\"~/.yarngpt/models\")\n",
|
| 108 |
+
"WAV_CONFIG = os.path.join(MODEL_DIR, \"wavtokenizer_mediumdata_frame75_3s_nq1_code4096_dim512_kmeans200_attn.yaml\")\n",
|
| 109 |
+
"WAV_MODEL = os.path.join(MODEL_DIR, \"wavtokenizer_large_speech_320_24k.ckpt\")\n",
|
| 110 |
+
"\n",
|
| 111 |
+
"print(f\"Using device: {DEVICE}\")"
|
| 112 |
+
]
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"cell_type": "code",
|
| 116 |
+
"execution_count": null,
|
| 117 |
+
"metadata": {},
|
| 118 |
+
"outputs": [],
|
| 119 |
+
"source": [
|
| 120 |
+
"# Load WavTokenizer\n",
|
| 121 |
+
"print(\"Loading WavTokenizer...\")\n",
|
| 122 |
+
"wav_tokenizer = WavTokenizer.from_pretrained0802(WAV_CONFIG, WAV_MODEL)\n",
|
| 123 |
+
"wav_tokenizer = wav_tokenizer.to(DEVICE)\n",
|
| 124 |
+
"print(\"WavTokenizer loaded!\")"
|
| 125 |
+
]
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"cell_type": "code",
|
| 129 |
+
"execution_count": null,
|
| 130 |
+
"metadata": {},
|
| 131 |
+
"outputs": [],
|
| 132 |
+
"source": [
|
| 133 |
+
"class YarnGPTDataset(Dataset):\n",
|
| 134 |
+
" \"\"\"Dataset for YarnGPT training with HuggingFace datasets.\"\"\"\n",
|
| 135 |
+
" \n",
|
| 136 |
+
" def __init__(self, hf_dataset, tokenizer, wav_tokenizer, language, max_length=4096, max_samples=1000):\n",
|
| 137 |
+
" self.dataset = hf_dataset.select(range(min(len(hf_dataset), max_samples)))\n",
|
| 138 |
+
" self.tokenizer = tokenizer\n",
|
| 139 |
+
" self.wav_tokenizer = wav_tokenizer\n",
|
| 140 |
+
" self.language = language\n",
|
| 141 |
+
" self.max_length = max_length\n",
|
| 142 |
+
" self.device = DEVICE\n",
|
| 143 |
+
" \n",
|
| 144 |
+
" self.uroman = ur.Uroman()\n",
|
| 145 |
+
" self.lec = inflect.engine()\n",
|
| 146 |
+
" \n",
|
| 147 |
+
" self.special_tokens = {\n",
|
| 148 |
+
" \"audio_code\": \"<|{}|>\",\n",
|
| 149 |
+
" \"text_start\": \"<|text_start|>\",\n",
|
| 150 |
+
" \"text_end\": \"<|text_end|>\",\n",
|
| 151 |
+
" \"audio_start\": \"<|audio_start|>\",\n",
|
| 152 |
+
" \"audio_end\": \"<|audio_end|>\",\n",
|
| 153 |
+
" \"code_start\": \"<|code_start|>\",\n",
|
| 154 |
+
" \"code_end\": \"<|code_end|>\",\n",
|
| 155 |
+
" \"text_sep\": \"<|text_sep|>\",\n",
|
| 156 |
+
" \"hausa\": \"<|hausa|>\",\n",
|
| 157 |
+
" \"igbo\": \"<|igbo|>\",\n",
|
| 158 |
+
" \"yoruba\": \"<|yoruba|>\",\n",
|
| 159 |
+
" \"english\": \"<|english|>\",\n",
|
| 160 |
+
" }\n",
|
| 161 |
+
" self.bos = \"<|im_start|>\"\n",
|
| 162 |
+
" self.eos = \"<|im_end|>\"\n",
|
| 163 |
+
" \n",
|
| 164 |
+
" def _process_text(self, text):\n",
|
| 165 |
+
" text = self.uroman.romanize_string(text)\n",
|
| 166 |
+
" text = re.sub(r'\\d+(\\.\\d+)?', lambda x: self.lec.number_to_words(x.group()), text.lower())\n",
|
| 167 |
+
" text = re.sub(r'[-_/,\\.\\\\]', ' ', text)\n",
|
| 168 |
+
" text = re.sub(r'[^a-z\\s]', '', text)\n",
|
| 169 |
+
" text = re.sub(r'\\s+', ' ', text).strip()\n",
|
| 170 |
+
" return text.split()\n",
|
| 171 |
+
" \n",
|
| 172 |
+
" def _encode_audio(self, audio_array, sample_rate):\n",
|
| 173 |
+
" audio = torch.tensor(audio_array, dtype=torch.float32)\n",
|
| 174 |
+
" if sample_rate != 24000:\n",
|
| 175 |
+
" audio = audio.unsqueeze(0)\n",
|
| 176 |
+
" audio = convert_audio(audio, sample_rate, 24000, 1)\n",
|
| 177 |
+
" audio = audio.squeeze()\n",
|
| 178 |
+
" \n",
|
| 179 |
+
" audio = audio.unsqueeze(0).to(self.device)\n",
|
| 180 |
+
" if audio.ndim == 3:\n",
|
| 181 |
+
" audio = audio.squeeze(1)\n",
|
| 182 |
+
" \n",
|
| 183 |
+
" bandwidth_id = torch.tensor([0]).to(self.device)\n",
|
| 184 |
+
" with torch.no_grad():\n",
|
| 185 |
+
" _, codes = self.wav_tokenizer.encode_infer(audio, bandwidth_id=bandwidth_id)\n",
|
| 186 |
+
" return codes.squeeze().tolist()\n",
|
| 187 |
+
" \n",
|
| 188 |
+
" def __len__(self):\n",
|
| 189 |
+
" return len(self.dataset)\n",
|
| 190 |
+
" \n",
|
| 191 |
+
" def __getitem__(self, idx):\n",
|
| 192 |
+
" sample = self.dataset[idx]\n",
|
| 193 |
+
" \n",
|
| 194 |
+
" try:\n",
|
| 195 |
+
" # Get audio and text\n",
|
| 196 |
+
" audio_array = sample['audio']['array']\n",
|
| 197 |
+
" sample_rate = sample['audio']['sampling_rate']\n",
|
| 198 |
+
" text = sample['sentence']\n",
|
| 199 |
+
" \n",
|
| 200 |
+
" # Skip very short or very long samples\n",
|
| 201 |
+
" duration = len(audio_array) / sample_rate\n",
|
| 202 |
+
" if duration < 1.0 or duration > 15.0:\n",
|
| 203 |
+
" return None\n",
|
| 204 |
+
" \n",
|
| 205 |
+
" # Encode audio\n",
|
| 206 |
+
" audio_codes = self._encode_audio(audio_array, sample_rate)\n",
|
| 207 |
+
" \n",
|
| 208 |
+
" # Create prompt\n",
|
| 209 |
+
" words = self._process_text(text)\n",
|
| 210 |
+
" words_str = self.special_tokens['text_sep'].join(words)\n",
|
| 211 |
+
" \n",
|
| 212 |
+
" prompt = f\"{self.bos}\\n{self.special_tokens['text_start']}{words_str}{self.special_tokens['text_end']}\\n\"\n",
|
| 213 |
+
" prompt += f\"{self.special_tokens[self.language]}\\n\"\n",
|
| 214 |
+
" prompt += f\"{self.special_tokens['audio_start']}\\n\"\n",
|
| 215 |
+
" codes_str = \"\".join([self.special_tokens['audio_code'].format(c) for c in audio_codes])\n",
|
| 216 |
+
" prompt += f\"{self.special_tokens['code_start']}{codes_str}{self.special_tokens['code_end']}\\n\"\n",
|
| 217 |
+
" prompt += f\"{self.special_tokens['audio_end']}\\n{self.eos}\"\n",
|
| 218 |
+
" \n",
|
| 219 |
+
" # Tokenize\n",
|
| 220 |
+
" tokens = self.tokenizer.encode(\n",
|
| 221 |
+
" prompt,\n",
|
| 222 |
+
" add_special_tokens=False,\n",
|
| 223 |
+
" max_length=self.max_length,\n",
|
| 224 |
+
" truncation=True\n",
|
| 225 |
+
" )\n",
|
| 226 |
+
" \n",
|
| 227 |
+
" return {\n",
|
| 228 |
+
" \"input_ids\": torch.tensor(tokens),\n",
|
| 229 |
+
" \"attention_mask\": torch.ones(len(tokens)),\n",
|
| 230 |
+
" \"labels\": torch.tensor(tokens)\n",
|
| 231 |
+
" }\n",
|
| 232 |
+
" except Exception as e:\n",
|
| 233 |
+
" print(f\"Error at index {idx}: {e}\")\n",
|
| 234 |
+
" return None"
|
| 235 |
+
]
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"cell_type": "code",
|
| 239 |
+
"execution_count": null,
|
| 240 |
+
"metadata": {},
|
| 241 |
+
"outputs": [],
|
| 242 |
+
"source": [
|
| 243 |
+
"# Load tokenizer and model\n",
|
| 244 |
+
"print(\"Loading tokenizer...\")\n",
|
| 245 |
+
"tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)\n",
|
| 246 |
+
"\n",
|
| 247 |
+
"print(\"Loading model...\")\n",
|
| 248 |
+
"model = AutoModelForCausalLM.from_pretrained(\n",
|
| 249 |
+
" MODEL_ID,\n",
|
| 250 |
+
" torch_dtype=torch.bfloat16\n",
|
| 251 |
+
").to(DEVICE)\n",
|
| 252 |
+
"print(\"Model loaded!\")"
|
| 253 |
+
]
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"cell_type": "code",
|
| 257 |
+
"execution_count": null,
|
| 258 |
+
"metadata": {},
|
| 259 |
+
"outputs": [],
|
| 260 |
+
"source": [
|
| 261 |
+
"# Create datasets (use smaller subset for testing)\n",
|
| 262 |
+
"MAX_SAMPLES = 500 # Increase for full training\n",
|
| 263 |
+
"\n",
|
| 264 |
+
"print(\"Creating Yoruba dataset...\")\n",
|
| 265 |
+
"yoruba_dataset = YarnGPTDataset(yoruba_ds, tokenizer, wav_tokenizer, \"yoruba\", max_samples=MAX_SAMPLES)\n",
|
| 266 |
+
"\n",
|
| 267 |
+
"print(\"Creating Hausa dataset...\")\n",
|
| 268 |
+
"hausa_dataset = YarnGPTDataset(hausa_ds, tokenizer, wav_tokenizer, \"hausa\", max_samples=MAX_SAMPLES)\n",
|
| 269 |
+
"\n",
|
| 270 |
+
"print(\"Creating Igbo dataset...\")\n",
|
| 271 |
+
"igbo_dataset = YarnGPTDataset(igbo_ds, tokenizer, wav_tokenizer, \"igbo\", max_samples=MAX_SAMPLES)\n",
|
| 272 |
+
"\n",
|
| 273 |
+
"print(f\"Dataset sizes: Yoruba={len(yoruba_dataset)}, Hausa={len(hausa_dataset)}, Igbo={len(igbo_dataset)}\")"
|
| 274 |
+
]
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"cell_type": "code",
|
| 278 |
+
"execution_count": null,
|
| 279 |
+
"metadata": {},
|
| 280 |
+
"outputs": [],
|
| 281 |
+
"source": [
|
| 282 |
+
"from torch.utils.data import ConcatDataset\n",
|
| 283 |
+
"from transformers import Trainer, TrainingArguments, DataCollatorForLanguageModeling\n",
|
| 284 |
+
"\n",
|
| 285 |
+
"# Combine datasets\n",
|
| 286 |
+
"combined_dataset = ConcatDataset([yoruba_dataset, hausa_dataset, igbo_dataset])\n",
|
| 287 |
+
"\n",
|
| 288 |
+
"# Filter out None samples\n",
|
| 289 |
+
"def collate_fn(batch):\n",
|
| 290 |
+
" batch = [b for b in batch if b is not None]\n",
|
| 291 |
+
" if not batch:\n",
|
| 292 |
+
" return None\n",
|
| 293 |
+
" \n",
|
| 294 |
+
" max_len = max(len(b['input_ids']) for b in batch)\n",
|
| 295 |
+
" \n",
|
| 296 |
+
" input_ids = torch.zeros(len(batch), max_len, dtype=torch.long)\n",
|
| 297 |
+
" attention_mask = torch.zeros(len(batch), max_len, dtype=torch.long)\n",
|
| 298 |
+
" labels = torch.full((len(batch), max_len), -100, dtype=torch.long)\n",
|
| 299 |
+
" \n",
|
| 300 |
+
" for i, b in enumerate(batch):\n",
|
| 301 |
+
" seq_len = len(b['input_ids'])\n",
|
| 302 |
+
" input_ids[i, :seq_len] = b['input_ids']\n",
|
| 303 |
+
" attention_mask[i, :seq_len] = b['attention_mask']\n",
|
| 304 |
+
" labels[i, :seq_len] = b['labels']\n",
|
| 305 |
+
" \n",
|
| 306 |
+
" return {\n",
|
| 307 |
+
" 'input_ids': input_ids,\n",
|
| 308 |
+
" 'attention_mask': attention_mask,\n",
|
| 309 |
+
" 'labels': labels\n",
|
| 310 |
+
" }\n",
|
| 311 |
+
"\n",
|
| 312 |
+
"# Training arguments\n",
|
| 313 |
+
"training_args = TrainingArguments(\n",
|
| 314 |
+
" output_dir=OUTPUT_DIR,\n",
|
| 315 |
+
" num_train_epochs=3, # Reduce for testing\n",
|
| 316 |
+
" per_device_train_batch_size=2,\n",
|
| 317 |
+
" gradient_accumulation_steps=8,\n",
|
| 318 |
+
" learning_rate=1e-4,\n",
|
| 319 |
+
" weight_decay=0.01,\n",
|
| 320 |
+
" warmup_ratio=0.1,\n",
|
| 321 |
+
" bf16=True,\n",
|
| 322 |
+
" logging_steps=50,\n",
|
| 323 |
+
" save_steps=200,\n",
|
| 324 |
+
" save_total_limit=2,\n",
|
| 325 |
+
" report_to=\"none\",\n",
|
| 326 |
+
")\n",
|
| 327 |
+
"\n",
|
| 328 |
+
"# Trainer\n",
|
| 329 |
+
"trainer = Trainer(\n",
|
| 330 |
+
" model=model,\n",
|
| 331 |
+
" args=training_args,\n",
|
| 332 |
+
" train_dataset=combined_dataset,\n",
|
| 333 |
+
" data_collator=collate_fn,\n",
|
| 334 |
+
")\n",
|
| 335 |
+
"\n",
|
| 336 |
+
"print(f\"Total training samples: {len(combined_dataset)}\")"
|
| 337 |
+
]
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"cell_type": "code",
|
| 341 |
+
"execution_count": null,
|
| 342 |
+
"metadata": {},
|
| 343 |
+
"outputs": [],
|
| 344 |
+
"source": [
|
| 345 |
+
"# Train!\n",
|
| 346 |
+
"print(\"Starting training...\")\n",
|
| 347 |
+
"trainer.train()\n",
|
| 348 |
+
"print(\"Training complete!\")"
|
| 349 |
+
]
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"cell_type": "code",
|
| 353 |
+
"execution_count": null,
|
| 354 |
+
"metadata": {},
|
| 355 |
+
"outputs": [],
|
| 356 |
+
"source": [
|
| 357 |
+
"# Save the fine-tuned model\n",
|
| 358 |
+
"trainer.save_model(OUTPUT_DIR)\n",
|
| 359 |
+
"tokenizer.save_pretrained(OUTPUT_DIR)\n",
|
| 360 |
+
"print(f\"Model saved to {OUTPUT_DIR}\")\n",
|
| 361 |
+
"\n",
|
| 362 |
+
"# Copy to Google Drive for persistence\n",
|
| 363 |
+
"!cp -r {OUTPUT_DIR} /content/drive/MyDrive/yarngpt-nigerian-finetuned"
|
| 364 |
+
]
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"cell_type": "code",
|
| 368 |
+
"execution_count": null,
|
| 369 |
+
"metadata": {},
|
| 370 |
+
"outputs": [],
|
| 371 |
+
"source": [
|
| 372 |
+
"# Test the fine-tuned model\n",
|
| 373 |
+
"from yarngpt.audiotokenizer import AudioTokenizerV2\n",
|
| 374 |
+
"\n",
|
| 375 |
+
"# Load fine-tuned model\n",
|
| 376 |
+
"finetuned_model = AutoModelForCausalLM.from_pretrained(\n",
|
| 377 |
+
" OUTPUT_DIR,\n",
|
| 378 |
+
" torch_dtype=torch.bfloat16\n",
|
| 379 |
+
").to(DEVICE)\n",
|
| 380 |
+
"\n",
|
| 381 |
+
"audio_tokenizer = AudioTokenizerV2(\n",
|
| 382 |
+
" OUTPUT_DIR,\n",
|
| 383 |
+
" WAV_MODEL,\n",
|
| 384 |
+
" WAV_CONFIG\n",
|
| 385 |
+
")\n",
|
| 386 |
+
"\n",
|
| 387 |
+
"# Generate speech\n",
|
| 388 |
+
"text = \"Bawo ni, se daadaa ni?\"\n",
|
| 389 |
+
"prompt = audio_tokenizer.create_prompt(text, lang=\"yoruba\", speaker_name=\"yoruba_female1\")\n",
|
| 390 |
+
"input_ids = audio_tokenizer.tokenize_prompt(prompt)\n",
|
| 391 |
+
"\n",
|
| 392 |
+
"output = finetuned_model.generate(\n",
|
| 393 |
+
" input_ids=input_ids,\n",
|
| 394 |
+
" temperature=0.1,\n",
|
| 395 |
+
" repetition_penalty=1.1,\n",
|
| 396 |
+
" max_length=4000,\n",
|
| 397 |
+
")\n",
|
| 398 |
+
"\n",
|
| 399 |
+
"codes = audio_tokenizer.get_codes(output)\n",
|
| 400 |
+
"audio = audio_tokenizer.get_audio(codes)\n",
|
| 401 |
+
"\n",
|
| 402 |
+
"import IPython\n",
|
| 403 |
+
"IPython.display.Audio(audio, rate=24000)"
|
| 404 |
+
]
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"cell_type": "code",
|
| 408 |
+
"execution_count": null,
|
| 409 |
+
"metadata": {},
|
| 410 |
+
"outputs": [],
|
| 411 |
+
"source": [
|
| 412 |
+
"# Push to Hugging Face Hub (optional)\n",
|
| 413 |
+
"from huggingface_hub import login, HfApi\n",
|
| 414 |
+
"\n",
|
| 415 |
+
"# Login with your HF token\n",
|
| 416 |
+
"# login(token=\"your_hf_token\")\n",
|
| 417 |
+
"\n",
|
| 418 |
+
"# Push model\n",
|
| 419 |
+
"# finetuned_model.push_to_hub(\"your-username/yarngpt-nigerian\")\n",
|
| 420 |
+
"# tokenizer.push_to_hub(\"your-username/yarngpt-nigerian\")"
|
| 421 |
+
]
|
| 422 |
+
}
|
| 423 |
+
],
|
| 424 |
+
"metadata": {
|
| 425 |
+
"accelerator": "GPU",
|
| 426 |
+
"colab": {
|
| 427 |
+
"gpuType": "A100",
|
| 428 |
+
"provenance": []
|
| 429 |
+
},
|
| 430 |
+
"kernelspec": {
|
| 431 |
+
"display_name": "Python 3",
|
| 432 |
+
"name": "python3"
|
| 433 |
+
},
|
| 434 |
+
"language_info": {
|
| 435 |
+
"name": "python"
|
| 436 |
+
}
|
| 437 |
+
},
|
| 438 |
+
"nbformat": 4,
|
| 439 |
+
"nbformat_minor": 0
|
| 440 |
+
}
|
YARNGPT_TRAINING_GUIDE.md
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# YarnGPT Training Guide for Nigerian Languages
|
| 2 |
+
|
| 3 |
+
## Overview
|
| 4 |
+
|
| 5 |
+
This guide covers how to:
|
| 6 |
+
1. **Create custom speaker voices** (voice cloning without fine-tuning)
|
| 7 |
+
2. **Fine-tune YarnGPT** with new Nigerian language data
|
| 8 |
+
|
| 9 |
+
## Current Data Status
|
| 10 |
+
|
| 11 |
+
```
|
| 12 |
+
~/voice-training/datasets/
|
| 13 |
+
├── nigerian_cv/ # 658MB - Common Voice (Yoruba, Hausa, Igbo, English)
|
| 14 |
+
├── nigerian_pidgin/ # 912MB - Nigerian Pidgin dataset
|
| 15 |
+
└── openslr_yoruba/ # 1.4GB - High-quality Yoruba speech (OpenSLR86)
|
| 16 |
+
|
| 17 |
+
~/voice-training/prepared_data/
|
| 18 |
+
├── yoruba/ # 19MB - 500 samples extracted
|
| 19 |
+
├── hausa/ # 14MB - 500 samples extracted
|
| 20 |
+
└── igbo/ # 17MB - 500 samples extracted
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
## Option 1: Create Custom Speaker Voices (No Training Required)
|
| 24 |
+
|
| 25 |
+
This is the **fastest approach** - create new speaker JSON files that YarnGPT can use.
|
| 26 |
+
|
| 27 |
+
### How It Works
|
| 28 |
+
YarnGPT uses "speaker JSON" files that contain:
|
| 29 |
+
- Reference text transcript
|
| 30 |
+
- Audio codes from WavTokenizer for each word
|
| 31 |
+
|
| 32 |
+
### Steps:
|
| 33 |
+
|
| 34 |
+
1. **Select a clean audio sample** (5-15 seconds, clear speech)
|
| 35 |
+
|
| 36 |
+
2. **Run the speaker creation script:**
|
| 37 |
+
```bash
|
| 38 |
+
cd ~/voice-training
|
| 39 |
+
source venv/bin/activate
|
| 40 |
+
python scripts/create_speaker_json.py \
|
| 41 |
+
--audio /path/to/audio.wav \
|
| 42 |
+
--text "The transcript of the audio" \
|
| 43 |
+
--output ~/yarngpt-clone/upstream/yarngpt/default_speakers_local/my_voice.json \
|
| 44 |
+
--language yoruba
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
3. **Deploy to Railway:**
|
| 48 |
+
- Add the JSON to `upstream/yarngpt/default_speakers_local/`
|
| 49 |
+
- Push to git and redeploy
|
| 50 |
+
|
| 51 |
+
### Best Practices for Speaker Audio:
|
| 52 |
+
- Duration: 5-15 seconds
|
| 53 |
+
- Format: WAV, 24kHz or higher sample rate
|
| 54 |
+
- Clean recording, minimal background noise
|
| 55 |
+
- Clear pronunciation
|
| 56 |
+
- Natural speaking pace
|
| 57 |
+
|
| 58 |
+
---
|
| 59 |
+
|
| 60 |
+
## Option 2: Fine-tune YarnGPT Model
|
| 61 |
+
|
| 62 |
+
For better quality with large amounts of data, fine-tune the model.
|
| 63 |
+
|
| 64 |
+
### Requirements:
|
| 65 |
+
- **GPU**: NVIDIA GPU with 16GB+ VRAM (A100 recommended)
|
| 66 |
+
- **Training Time**: ~50 hours on A100 for full training
|
| 67 |
+
- **Data**: Audio files + transcripts
|
| 68 |
+
|
| 69 |
+
### Training Data Format:
|
| 70 |
+
```
|
| 71 |
+
data_dir/
|
| 72 |
+
├── wavs/
|
| 73 |
+
│ ├── audio001.wav
|
| 74 |
+
│ ├── audio002.wav
|
| 75 |
+
│ └── ...
|
| 76 |
+
└── metadata.csv
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
`metadata.csv` format:
|
| 80 |
+
```
|
| 81 |
+
audio001|This is the transcript of audio 001
|
| 82 |
+
audio002|Another transcript here
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
### Fine-tuning Script:
|
| 86 |
+
|
| 87 |
+
```bash
|
| 88 |
+
cd ~/voice-training
|
| 89 |
+
source venv/bin/activate
|
| 90 |
+
python scripts/finetune_yarngpt.py \
|
| 91 |
+
--data-dirs ./prepared_data/yoruba ./prepared_data/hausa ./prepared_data/igbo \
|
| 92 |
+
--languages yoruba hausa igbo \
|
| 93 |
+
--output-dir ./yarngpt-nigerian \
|
| 94 |
+
--epochs 5 \
|
| 95 |
+
--batch-size 4
|
| 96 |
+
```
|
| 97 |
+
|
| 98 |
+
### Google Colab Training (Recommended)
|
| 99 |
+
|
| 100 |
+
Since local GPU is limited, use Google Colab:
|
| 101 |
+
|
| 102 |
+
1. Upload the Colab notebook: `~/voice-training/TRAIN_YARNGPT_COLAB.ipynb`
|
| 103 |
+
2. Enable GPU runtime (Runtime > Change runtime type > GPU)
|
| 104 |
+
3. Upload your training data to Google Drive
|
| 105 |
+
4. Run the notebook cells
|
| 106 |
+
|
| 107 |
+
---
|
| 108 |
+
|
| 109 |
+
## Option 3: Improve Existing Deployment
|
| 110 |
+
|
| 111 |
+
### Fix Railway 502 Error
|
| 112 |
+
|
| 113 |
+
The Railway deployment is returning 502 errors. Check:
|
| 114 |
+
|
| 115 |
+
1. **Memory limits** - YarnGPT needs ~2GB RAM
|
| 116 |
+
2. **HF_TOKEN** - Must be set for model downloads
|
| 117 |
+
3. **Logs**: `railway logs`
|
| 118 |
+
|
| 119 |
+
```bash
|
| 120 |
+
# Check Railway deployment
|
| 121 |
+
cd ~/yarngpt-clone
|
| 122 |
+
railway status
|
| 123 |
+
railway logs
|
| 124 |
+
```
|
| 125 |
+
|
| 126 |
+
### Redeploy with fixes:
|
| 127 |
+
```bash
|
| 128 |
+
cd ~/yarngpt-clone
|
| 129 |
+
git add .
|
| 130 |
+
git commit -m "fix: increase memory allocation"
|
| 131 |
+
git push origin main
|
| 132 |
+
# Railway auto-deploys on push
|
| 133 |
+
```
|
| 134 |
+
|
| 135 |
+
---
|
| 136 |
+
|
| 137 |
+
## Architecture Overview
|
| 138 |
+
|
| 139 |
+
```
|
| 140 |
+
User Input (Text)
|
| 141 |
+
↓
|
| 142 |
+
AudioTokenizerV2.create_prompt()
|
| 143 |
+
↓
|
| 144 |
+
Reference speaker JSON (audio codes as prefix)
|
| 145 |
+
↓
|
| 146 |
+
SmolLM2-360M (YarnGPT model)
|
| 147 |
+
↓
|
| 148 |
+
Generated audio codes
|
| 149 |
+
↓
|
| 150 |
+
WavTokenizer decoder
|
| 151 |
+
↓
|
| 152 |
+
Audio waveform (24kHz)
|
| 153 |
+
```
|
| 154 |
+
|
| 155 |
+
## Key Files in yarngpt-clone
|
| 156 |
+
|
| 157 |
+
```
|
| 158 |
+
yarngpt-clone/
|
| 159 |
+
├── src/morpheous/
|
| 160 |
+
│ ├── main.py # FastAPI endpoints
|
| 161 |
+
│ ├── tts.py # TTS synthesis logic
|
| 162 |
+
│ └── voice_data/ # Bundled speaker JSONs
|
| 163 |
+
├── upstream/yarngpt/
|
| 164 |
+
│ ├── default_speakers/ # English voices
|
| 165 |
+
│ └── default_speakers_local/ # Nigerian language voices
|
| 166 |
+
└── requirements.txt
|
| 167 |
+
```
|
| 168 |
+
|
| 169 |
+
## Next Steps
|
| 170 |
+
|
| 171 |
+
1. **Quick Win**: Create 2-3 custom speaker JSONs from your best audio samples
|
| 172 |
+
2. **Medium**: Fix Railway deployment and add new speaker voices
|
| 173 |
+
3. **Long-term**: Fine-tune model with full training data on Colab/Cloud GPU
|
| 174 |
+
|
| 175 |
+
## Commands Cheat Sheet
|
| 176 |
+
|
| 177 |
+
```bash
|
| 178 |
+
# Activate environment
|
| 179 |
+
cd ~/voice-training && source venv/bin/activate
|
| 180 |
+
|
| 181 |
+
# Create speaker JSON
|
| 182 |
+
python scripts/create_speaker_json.py --audio sample.wav --text "transcript" --output voice.json
|
| 183 |
+
|
| 184 |
+
# Fine-tune (requires GPU)
|
| 185 |
+
python scripts/finetune_yarngpt.py --data-dirs ./prepared_data/yoruba --languages yoruba
|
| 186 |
+
|
| 187 |
+
# Check data status
|
| 188 |
+
du -sh ~/voice-training/datasets/*/
|
| 189 |
+
ls ~/voice-training/prepared_data/*/wavs/ | wc -l
|
| 190 |
+
```
|
create_nigerian_speakers.py
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""
|
| 3 |
+
Create YarnGPT speaker JSON files from Nigerian voice data.
|
| 4 |
+
Uses WavTokenizer to encode audio to codes.
|
| 5 |
+
"""
|
| 6 |
+
|
| 7 |
+
import os
|
| 8 |
+
import sys
|
| 9 |
+
import json
|
| 10 |
+
import re
|
| 11 |
+
from pathlib import Path
|
| 12 |
+
|
| 13 |
+
def main():
|
| 14 |
+
print("=== Creating Nigerian Speaker JSONs ===\n")
|
| 15 |
+
|
| 16 |
+
import torch
|
| 17 |
+
import torchaudio
|
| 18 |
+
from outetts.wav_tokenizer.decoder import WavTokenizer
|
| 19 |
+
from outetts.wav_tokenizer.encoder.utils import convert_audio
|
| 20 |
+
|
| 21 |
+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 22 |
+
print(f"Using device: {device}")
|
| 23 |
+
|
| 24 |
+
# WavTokenizer paths
|
| 25 |
+
MODEL_DIR = os.path.expanduser("~/.yarngpt/models")
|
| 26 |
+
config_path = os.path.join(MODEL_DIR, "wavtokenizer_mediumdata_frame75_3s_nq1_code4096_dim512_kmeans200_attn.yaml")
|
| 27 |
+
model_path = os.path.join(MODEL_DIR, "wavtokenizer_large_speech_320_24k.ckpt")
|
| 28 |
+
|
| 29 |
+
# Download WavTokenizer if not exists
|
| 30 |
+
if not os.path.exists(model_path):
|
| 31 |
+
print("Downloading WavTokenizer models...")
|
| 32 |
+
os.makedirs(MODEL_DIR, exist_ok=True)
|
| 33 |
+
import requests
|
| 34 |
+
from tqdm import tqdm
|
| 35 |
+
|
| 36 |
+
# Config
|
| 37 |
+
config_url = "https://huggingface.co/novateur/WavTokenizer-medium-speech-75token/resolve/main/wavtokenizer_mediumdata_frame75_3s_nq1_code4096_dim512_kmeans200_attn.yaml"
|
| 38 |
+
r = requests.get(config_url)
|
| 39 |
+
with open(config_path, 'wb') as f:
|
| 40 |
+
f.write(r.content)
|
| 41 |
+
|
| 42 |
+
# Model (larger, use streaming)
|
| 43 |
+
model_url = "https://huggingface.co/novateur/WavTokenizer-large-speech-75token/resolve/main/wavtokenizer_large_speech_320_24k.ckpt"
|
| 44 |
+
r = requests.get(model_url, stream=True)
|
| 45 |
+
total = int(r.headers.get('content-length', 0))
|
| 46 |
+
with open(model_path, 'wb') as f, tqdm(total=total, unit='B', unit_scale=True) as pbar:
|
| 47 |
+
for chunk in r.iter_content(chunk_size=8192):
|
| 48 |
+
f.write(chunk)
|
| 49 |
+
pbar.update(len(chunk))
|
| 50 |
+
|
| 51 |
+
print("Loading WavTokenizer...")
|
| 52 |
+
wav_tokenizer = WavTokenizer.from_pretrained0802(config_path, model_path)
|
| 53 |
+
wav_tokenizer = wav_tokenizer.to(device)
|
| 54 |
+
print("WavTokenizer loaded!\n")
|
| 55 |
+
|
| 56 |
+
# Output directory
|
| 57 |
+
output_dir = Path(os.path.expanduser("~/yarngpt-clone/src/morpheous/voice_data/default_speakers_local"))
|
| 58 |
+
output_dir.mkdir(parents=True, exist_ok=True)
|
| 59 |
+
|
| 60 |
+
# Process each language
|
| 61 |
+
languages = ["yoruba", "hausa", "igbo"]
|
| 62 |
+
|
| 63 |
+
for lang in languages:
|
| 64 |
+
manifest_path = os.path.expanduser(f"~/voice-training/prepared_data/{lang}/manifest.json")
|
| 65 |
+
if not os.path.exists(manifest_path):
|
| 66 |
+
print(f"No manifest for {lang}, skipping...")
|
| 67 |
+
continue
|
| 68 |
+
|
| 69 |
+
with open(manifest_path, 'r') as f:
|
| 70 |
+
manifest = json.load(f)
|
| 71 |
+
|
| 72 |
+
print(f"\n=== Processing {lang.upper()} ===")
|
| 73 |
+
|
| 74 |
+
# Group by speaker
|
| 75 |
+
speakers = {}
|
| 76 |
+
for entry in manifest:
|
| 77 |
+
speaker = entry.get("speaker", "unknown")
|
| 78 |
+
if speaker not in speakers:
|
| 79 |
+
speakers[speaker] = []
|
| 80 |
+
speakers[speaker].append(entry)
|
| 81 |
+
|
| 82 |
+
# Create speaker JSONs (up to 2 per language)
|
| 83 |
+
speaker_count = 0
|
| 84 |
+
for speaker_id, entries in speakers.items():
|
| 85 |
+
if speaker_count >= 2:
|
| 86 |
+
break
|
| 87 |
+
|
| 88 |
+
# Find best sample (longest within 5-10s range)
|
| 89 |
+
best_entry = None
|
| 90 |
+
best_duration = 0
|
| 91 |
+
|
| 92 |
+
for entry in entries[:20]: # Check first 20 samples
|
| 93 |
+
audio_path = entry["audio_file"]
|
| 94 |
+
if not os.path.exists(audio_path):
|
| 95 |
+
continue
|
| 96 |
+
try:
|
| 97 |
+
info = torchaudio.info(audio_path)
|
| 98 |
+
duration = info.num_frames / info.sample_rate
|
| 99 |
+
if 5 <= duration <= 10 and duration > best_duration:
|
| 100 |
+
best_entry = entry
|
| 101 |
+
best_duration = duration
|
| 102 |
+
except:
|
| 103 |
+
continue
|
| 104 |
+
|
| 105 |
+
if not best_entry:
|
| 106 |
+
continue
|
| 107 |
+
|
| 108 |
+
audio_path = best_entry["audio_file"]
|
| 109 |
+
text = best_entry["text"]
|
| 110 |
+
|
| 111 |
+
print(f"Processing {lang}_{speaker_id}: {os.path.basename(audio_path)} ({best_duration:.1f}s)")
|
| 112 |
+
print(f" Text: {text[:60]}...")
|
| 113 |
+
|
| 114 |
+
try:
|
| 115 |
+
# Load audio
|
| 116 |
+
audio_data, sample_rate = torchaudio.load(audio_path)
|
| 117 |
+
audio_data = audio_data.squeeze().to(dtype=torch.float32)
|
| 118 |
+
|
| 119 |
+
# Resample to 24kHz
|
| 120 |
+
if sample_rate != 24000:
|
| 121 |
+
audio_data = audio_data.unsqueeze(0)
|
| 122 |
+
audio_data = convert_audio(audio_data, sample_rate, 24000, 1)
|
| 123 |
+
audio_data = audio_data.squeeze()
|
| 124 |
+
|
| 125 |
+
audio = audio_data.unsqueeze(0).to(device)
|
| 126 |
+
if audio.ndim == 3:
|
| 127 |
+
audio = audio.squeeze(1)
|
| 128 |
+
|
| 129 |
+
# Encode to codes
|
| 130 |
+
bandwidth_id = torch.tensor([0]).to(device)
|
| 131 |
+
with torch.no_grad():
|
| 132 |
+
_, codes = wav_tokenizer.encode_infer(audio, bandwidth_id=bandwidth_id)
|
| 133 |
+
codes = codes.squeeze().tolist()
|
| 134 |
+
|
| 135 |
+
# Calculate duration
|
| 136 |
+
total_duration = len(audio_data) / 24000
|
| 137 |
+
|
| 138 |
+
# Split text into words
|
| 139 |
+
words = text.strip().split()
|
| 140 |
+
num_words = len(words)
|
| 141 |
+
|
| 142 |
+
# Distribute codes across words
|
| 143 |
+
codes_per_word = len(codes) // num_words
|
| 144 |
+
duration_per_word = total_duration / num_words
|
| 145 |
+
|
| 146 |
+
word_data = []
|
| 147 |
+
for i, word in enumerate(words):
|
| 148 |
+
start_idx = i * codes_per_word
|
| 149 |
+
end_idx = start_idx + codes_per_word if i < num_words - 1 else len(codes)
|
| 150 |
+
word_codes = codes[start_idx:end_idx]
|
| 151 |
+
|
| 152 |
+
# Normalize word
|
| 153 |
+
normalized_word = re.sub(r'[^a-zA-ZẹọṣẸỌṢàáèéìíòóùúÀÁÈÉÌÍÒÓÙÚ]', '', word.lower())
|
| 154 |
+
if not normalized_word:
|
| 155 |
+
normalized_word = word.lower()
|
| 156 |
+
|
| 157 |
+
word_data.append({
|
| 158 |
+
"word": normalized_word,
|
| 159 |
+
"duration": f"{duration_per_word:.2f}",
|
| 160 |
+
"codes": word_codes
|
| 161 |
+
})
|
| 162 |
+
|
| 163 |
+
# Create speaker JSON
|
| 164 |
+
speaker_json = {
|
| 165 |
+
"text": text,
|
| 166 |
+
"words": word_data
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
# Determine gender/number
|
| 170 |
+
gender = "female" if speaker_count == 0 else "male"
|
| 171 |
+
num = speaker_count + 3 # Start from 3 to add to existing
|
| 172 |
+
output_name = f"{lang}_{gender}{num}.json"
|
| 173 |
+
output_path = output_dir / output_name
|
| 174 |
+
|
| 175 |
+
with open(output_path, 'w', encoding='utf-8') as f:
|
| 176 |
+
json.dump(speaker_json, f, ensure_ascii=False, indent=4)
|
| 177 |
+
|
| 178 |
+
print(f" Created: {output_name}")
|
| 179 |
+
speaker_count += 1
|
| 180 |
+
|
| 181 |
+
except Exception as e:
|
| 182 |
+
print(f" Error: {e}")
|
| 183 |
+
continue
|
| 184 |
+
|
| 185 |
+
print("\n=== Done! ===")
|
| 186 |
+
print(f"Speaker JSONs saved to: {output_dir}")
|
| 187 |
+
|
| 188 |
+
|
| 189 |
+
if __name__ == "__main__":
|
| 190 |
+
main()
|
datasets/line_index_female.tsv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
datasets/line_index_male.tsv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
datasets/nigerian_cv/.gitattributes
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
# Audio files - uncompressed
|
| 39 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
# Audio files - compressed
|
| 43 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
# Image files - uncompressed
|
| 49 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
# Image files - compressed
|
| 54 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
# Video files - compressed
|
| 58 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
datasets/nigerian_cv/english/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43e91815159650ffa4776b18d0183a95370475697bf16d7ae0bd27a3a8095942
|
| 3 |
+
size 11485340
|
datasets/nigerian_cv/english/train-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d0d40ff99b48e26cb7df7cb9ea7b1073cfd0689b1ec3064822b00a30bab19511
|
| 3 |
+
size 98009893
|
datasets/nigerian_cv/english/validation-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1be4fa9459ae86b60d47e4fc1ef76b15a4b7266e427fa238304463f144ca28bc
|
| 3 |
+
size 12009651
|
datasets/nigerian_cv/hausa/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b551e5c09affc1435fd06f907c5d904fcd932aa83d2967c263a624b8c8b8bcaf
|
| 3 |
+
size 23863151
|
datasets/nigerian_cv/hausa/train-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c40716b5ac43e58bc67c98cf79074dfc8c02a120fb5252f6cbe45b76c1ce57e7
|
| 3 |
+
size 187611204
|
datasets/nigerian_cv/hausa/validation-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0cb217dbffbc5fce9553d52097659a9f4013de5b0d4315e1afa516b3bb305133
|
| 3 |
+
size 23112615
|
datasets/nigerian_cv/igbo/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6b82a320a1f0e9678b41bba8440634aed3dac69a07328bba96af13c76389c770
|
| 3 |
+
size 18815086
|
datasets/nigerian_cv/igbo/train-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b1a4597f3d858bdb7ae7f4d3845dffcb5fc4713c00c7a040c48540731064cba7
|
| 3 |
+
size 148330328
|
datasets/nigerian_cv/igbo/validation-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d8382df8a6c39d80c6e83acf52bd4280aa66cf3862f5ce53100b77413055f806
|
| 3 |
+
size 18841250
|
datasets/nigerian_cv/yoruba/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:47d18fa06b39618261b1eb35d05f2d757d4c66fcc9c437292f09c897af9c6587
|
| 3 |
+
size 15019665
|
datasets/nigerian_cv/yoruba/train-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f0526817fdd543e2e6dd96d1c5dc08a7b7896bf05cae1f7960b0806ff85e18d
|
| 3 |
+
size 117359064
|
datasets/nigerian_cv/yoruba/validation-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34f48f234bf13e167b6975861dac451bd7664840d67ec3951ec64c802fc107c7
|
| 3 |
+
size 15111185
|
datasets/nigerian_pidgin/.gitattributes
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
# Audio files - uncompressed
|
| 38 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
# Audio files - compressed
|
| 42 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
# Image files - uncompressed
|
| 48 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
# Image files - compressed
|
| 53 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
# Video files - compressed
|
| 57 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
datasets/nigerian_pidgin/data/test-00000-of-00001-16c049b6814bb7ff.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b441e2c00fc5386d60675e2db89af092e985e10d32341c7524e61ed37a2510d7
|
| 3 |
+
size 195493858
|
datasets/nigerian_pidgin/data/train-00000-of-00002-06caf65bef6a8834.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8f5578d97529de95d3eb6406a1ca32adb59cde0e701e0d36d2620d29194ca39d
|
| 3 |
+
size 298848257
|
datasets/nigerian_pidgin/data/train-00001-of-00002-541a3212bc85a73b.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b84bd673a5510ef12fa524216509daf32ed533a6eb437ee921fcfcc13f574eee
|
| 3 |
+
size 307844694
|
datasets/nigerian_pidgin/data/validation-00000-of-00001-b91747625e760fc5.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5ddbf9a25ad4193993e44e3233019738792e5a829fa2689f22661a328a43cfe4
|
| 3 |
+
size 153689547
|
datasets/openslr_yoruba/LICENSE
ADDED
|
@@ -0,0 +1,427 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Attribution-ShareAlike 4.0 International
|
| 2 |
+
|
| 3 |
+
=======================================================================
|
| 4 |
+
|
| 5 |
+
Creative Commons Corporation ("Creative Commons") is not a law firm and
|
| 6 |
+
does not provide legal services or legal advice. Distribution of
|
| 7 |
+
Creative Commons public licenses does not create a lawyer-client or
|
| 8 |
+
other relationship. Creative Commons makes its licenses and related
|
| 9 |
+
information available on an "as-is" basis. Creative Commons gives no
|
| 10 |
+
warranties regarding its licenses, any material licensed under their
|
| 11 |
+
terms and conditions, or any related information. Creative Commons
|
| 12 |
+
disclaims all liability for damages resulting from their use to the
|
| 13 |
+
fullest extent possible.
|
| 14 |
+
|
| 15 |
+
Using Creative Commons Public Licenses
|
| 16 |
+
|
| 17 |
+
Creative Commons public licenses provide a standard set of terms and
|
| 18 |
+
conditions that creators and other rights holders may use to share
|
| 19 |
+
original works of authorship and other material subject to copyright
|
| 20 |
+
and certain other rights specified in the public license below. The
|
| 21 |
+
following considerations are for informational purposes only, are not
|
| 22 |
+
exhaustive, and do not form part of our licenses.
|
| 23 |
+
|
| 24 |
+
Considerations for licensors: Our public licenses are
|
| 25 |
+
intended for use by those authorized to give the public
|
| 26 |
+
permission to use material in ways otherwise restricted by
|
| 27 |
+
copyright and certain other rights. Our licenses are
|
| 28 |
+
irrevocable. Licensors should read and understand the terms
|
| 29 |
+
and conditions of the license they choose before applying it.
|
| 30 |
+
Licensors should also secure all rights necessary before
|
| 31 |
+
applying our licenses so that the public can reuse the
|
| 32 |
+
material as expected. Licensors should clearly mark any
|
| 33 |
+
material not subject to the license. This includes other CC-
|
| 34 |
+
licensed material, or material used under an exception or
|
| 35 |
+
limitation to copyright. More considerations for licensors:
|
| 36 |
+
wiki.creativecommons.org/Considerations_for_licensors
|
| 37 |
+
|
| 38 |
+
Considerations for the public: By using one of our public
|
| 39 |
+
licenses, a licensor grants the public permission to use the
|
| 40 |
+
licensed material under specified terms and conditions. If
|
| 41 |
+
the licensor's permission is not necessary for any reason--for
|
| 42 |
+
example, because of any applicable exception or limitation to
|
| 43 |
+
copyright--then that use is not regulated by the license. Our
|
| 44 |
+
licenses grant only permissions under copyright and certain
|
| 45 |
+
other rights that a licensor has authority to grant. Use of
|
| 46 |
+
the licensed material may still be restricted for other
|
| 47 |
+
reasons, including because others have copyright or other
|
| 48 |
+
rights in the material. A licensor may make special requests,
|
| 49 |
+
such as asking that all changes be marked or described.
|
| 50 |
+
Although not required by our licenses, you are encouraged to
|
| 51 |
+
respect those requests where reasonable. More_considerations
|
| 52 |
+
for the public:
|
| 53 |
+
wiki.creativecommons.org/Considerations_for_licensees
|
| 54 |
+
|
| 55 |
+
=======================================================================
|
| 56 |
+
|
| 57 |
+
Creative Commons Attribution-ShareAlike 4.0 International Public
|
| 58 |
+
License
|
| 59 |
+
|
| 60 |
+
By exercising the Licensed Rights (defined below), You accept and agree
|
| 61 |
+
to be bound by the terms and conditions of this Creative Commons
|
| 62 |
+
Attribution-ShareAlike 4.0 International Public License ("Public
|
| 63 |
+
License"). To the extent this Public License may be interpreted as a
|
| 64 |
+
contract, You are granted the Licensed Rights in consideration of Your
|
| 65 |
+
acceptance of these terms and conditions, and the Licensor grants You
|
| 66 |
+
such rights in consideration of benefits the Licensor receives from
|
| 67 |
+
making the Licensed Material available under these terms and
|
| 68 |
+
conditions.
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
Section 1 -- Definitions.
|
| 72 |
+
|
| 73 |
+
a. Adapted Material means material subject to Copyright and Similar
|
| 74 |
+
Rights that is derived from or based upon the Licensed Material
|
| 75 |
+
and in which the Licensed Material is translated, altered,
|
| 76 |
+
arranged, transformed, or otherwise modified in a manner requiring
|
| 77 |
+
permission under the Copyright and Similar Rights held by the
|
| 78 |
+
Licensor. For purposes of this Public License, where the Licensed
|
| 79 |
+
Material is a musical work, performance, or sound recording,
|
| 80 |
+
Adapted Material is always produced where the Licensed Material is
|
| 81 |
+
synched in timed relation with a moving image.
|
| 82 |
+
|
| 83 |
+
b. Adapter's License means the license You apply to Your Copyright
|
| 84 |
+
and Similar Rights in Your contributions to Adapted Material in
|
| 85 |
+
accordance with the terms and conditions of this Public License.
|
| 86 |
+
|
| 87 |
+
c. BY-SA Compatible License means a license listed at
|
| 88 |
+
creativecommons.org/compatiblelicenses, approved by Creative
|
| 89 |
+
Commons as essentially the equivalent of this Public License.
|
| 90 |
+
|
| 91 |
+
d. Copyright and Similar Rights means copyright and/or similar rights
|
| 92 |
+
closely related to copyright including, without limitation,
|
| 93 |
+
performance, broadcast, sound recording, and Sui Generis Database
|
| 94 |
+
Rights, without regard to how the rights are labeled or
|
| 95 |
+
categorized. For purposes of this Public License, the rights
|
| 96 |
+
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
| 97 |
+
Rights.
|
| 98 |
+
|
| 99 |
+
e. Effective Technological Measures means those measures that, in the
|
| 100 |
+
absence of proper authority, may not be circumvented under laws
|
| 101 |
+
fulfilling obligations under Article 11 of the WIPO Copyright
|
| 102 |
+
Treaty adopted on December 20, 1996, and/or similar international
|
| 103 |
+
agreements.
|
| 104 |
+
|
| 105 |
+
f. Exceptions and Limitations means fair use, fair dealing, and/or
|
| 106 |
+
any other exception or limitation to Copyright and Similar Rights
|
| 107 |
+
that applies to Your use of the Licensed Material.
|
| 108 |
+
|
| 109 |
+
g. License Elements means the license attributes listed in the name
|
| 110 |
+
of a Creative Commons Public License. The License Elements of this
|
| 111 |
+
Public License are Attribution and ShareAlike.
|
| 112 |
+
|
| 113 |
+
h. Licensed Material means the artistic or literary work, database,
|
| 114 |
+
or other material to which the Licensor applied this Public
|
| 115 |
+
License.
|
| 116 |
+
|
| 117 |
+
i. Licensed Rights means the rights granted to You subject to the
|
| 118 |
+
terms and conditions of this Public License, which are limited to
|
| 119 |
+
all Copyright and Similar Rights that apply to Your use of the
|
| 120 |
+
Licensed Material and that the Licensor has authority to license.
|
| 121 |
+
|
| 122 |
+
j. Licensor means the individual(s) or entity(ies) granting rights
|
| 123 |
+
under this Public License.
|
| 124 |
+
|
| 125 |
+
k. Share means to provide material to the public by any means or
|
| 126 |
+
process that requires permission under the Licensed Rights, such
|
| 127 |
+
as reproduction, public display, public performance, distribution,
|
| 128 |
+
dissemination, communication, or importation, and to make material
|
| 129 |
+
available to the public including in ways that members of the
|
| 130 |
+
public may access the material from a place and at a time
|
| 131 |
+
individually chosen by them.
|
| 132 |
+
|
| 133 |
+
l. Sui Generis Database Rights means rights other than copyright
|
| 134 |
+
resulting from Directive 96/9/EC of the European Parliament and of
|
| 135 |
+
the Council of 11 March 1996 on the legal protection of databases,
|
| 136 |
+
as amended and/or succeeded, as well as other essentially
|
| 137 |
+
equivalent rights anywhere in the world.
|
| 138 |
+
|
| 139 |
+
m. You means the individual or entity exercising the Licensed Rights
|
| 140 |
+
under this Public License. Your has a corresponding meaning.
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
Section 2 -- Scope.
|
| 144 |
+
|
| 145 |
+
a. License grant.
|
| 146 |
+
|
| 147 |
+
1. Subject to the terms and conditions of this Public License,
|
| 148 |
+
the Licensor hereby grants You a worldwide, royalty-free,
|
| 149 |
+
non-sublicensable, non-exclusive, irrevocable license to
|
| 150 |
+
exercise the Licensed Rights in the Licensed Material to:
|
| 151 |
+
|
| 152 |
+
a. reproduce and Share the Licensed Material, in whole or
|
| 153 |
+
in part; and
|
| 154 |
+
|
| 155 |
+
b. produce, reproduce, and Share Adapted Material.
|
| 156 |
+
|
| 157 |
+
2. Exceptions and Limitations. For the avoidance of doubt, where
|
| 158 |
+
Exceptions and Limitations apply to Your use, this Public
|
| 159 |
+
License does not apply, and You do not need to comply with
|
| 160 |
+
its terms and conditions.
|
| 161 |
+
|
| 162 |
+
3. Term. The term of this Public License is specified in Section
|
| 163 |
+
6(a).
|
| 164 |
+
|
| 165 |
+
4. Media and formats; technical modifications allowed. The
|
| 166 |
+
Licensor authorizes You to exercise the Licensed Rights in
|
| 167 |
+
all media and formats whether now known or hereafter created,
|
| 168 |
+
and to make technical modifications necessary to do so. The
|
| 169 |
+
Licensor waives and/or agrees not to assert any right or
|
| 170 |
+
authority to forbid You from making technical modifications
|
| 171 |
+
necessary to exercise the Licensed Rights, including
|
| 172 |
+
technical modifications necessary to circumvent Effective
|
| 173 |
+
Technological Measures. For purposes of this Public License,
|
| 174 |
+
simply making modifications authorized by this Section 2(a)
|
| 175 |
+
(4) never produces Adapted Material.
|
| 176 |
+
|
| 177 |
+
5. Downstream recipients.
|
| 178 |
+
|
| 179 |
+
a. Offer from the Licensor -- Licensed Material. Every
|
| 180 |
+
recipient of the Licensed Material automatically
|
| 181 |
+
receives an offer from the Licensor to exercise the
|
| 182 |
+
Licensed Rights under the terms and conditions of this
|
| 183 |
+
Public License.
|
| 184 |
+
|
| 185 |
+
b. Additional offer from the Licensor -- Adapted Material.
|
| 186 |
+
Every recipient of Adapted Material from You
|
| 187 |
+
automatically receives an offer from the Licensor to
|
| 188 |
+
exercise the Licensed Rights in the Adapted Material
|
| 189 |
+
under the conditions of the Adapter's License You apply.
|
| 190 |
+
|
| 191 |
+
c. No downstream restrictions. You may not offer or impose
|
| 192 |
+
any additional or different terms or conditions on, or
|
| 193 |
+
apply any Effective Technological Measures to, the
|
| 194 |
+
Licensed Material if doing so restricts exercise of the
|
| 195 |
+
Licensed Rights by any recipient of the Licensed
|
| 196 |
+
Material.
|
| 197 |
+
|
| 198 |
+
6. No endorsement. Nothing in this Public License constitutes or
|
| 199 |
+
may be construed as permission to assert or imply that You
|
| 200 |
+
are, or that Your use of the Licensed Material is, connected
|
| 201 |
+
with, or sponsored, endorsed, or granted official status by,
|
| 202 |
+
the Licensor or others designated to receive attribution as
|
| 203 |
+
provided in Section 3(a)(1)(A)(i).
|
| 204 |
+
|
| 205 |
+
b. Other rights.
|
| 206 |
+
|
| 207 |
+
1. Moral rights, such as the right of integrity, are not
|
| 208 |
+
licensed under this Public License, nor are publicity,
|
| 209 |
+
privacy, and/or other similar personality rights; however, to
|
| 210 |
+
the extent possible, the Licensor waives and/or agrees not to
|
| 211 |
+
assert any such rights held by the Licensor to the limited
|
| 212 |
+
extent necessary to allow You to exercise the Licensed
|
| 213 |
+
Rights, but not otherwise.
|
| 214 |
+
|
| 215 |
+
2. Patent and trademark rights are not licensed under this
|
| 216 |
+
Public License.
|
| 217 |
+
|
| 218 |
+
3. To the extent possible, the Licensor waives any right to
|
| 219 |
+
collect royalties from You for the exercise of the Licensed
|
| 220 |
+
Rights, whether directly or through a collecting society
|
| 221 |
+
under any voluntary or waivable statutory or compulsory
|
| 222 |
+
licensing scheme. In all other cases the Licensor expressly
|
| 223 |
+
reserves any right to collect such royalties.
|
| 224 |
+
|
| 225 |
+
|
| 226 |
+
Section 3 -- License Conditions.
|
| 227 |
+
|
| 228 |
+
Your exercise of the Licensed Rights is expressly made subject to the
|
| 229 |
+
following conditions.
|
| 230 |
+
|
| 231 |
+
a. Attribution.
|
| 232 |
+
|
| 233 |
+
1. If You Share the Licensed Material (including in modified
|
| 234 |
+
form), You must:
|
| 235 |
+
|
| 236 |
+
a. retain the following if it is supplied by the Licensor
|
| 237 |
+
with the Licensed Material:
|
| 238 |
+
|
| 239 |
+
i. identification of the creator(s) of the Licensed
|
| 240 |
+
Material and any others designated to receive
|
| 241 |
+
attribution, in any reasonable manner requested by
|
| 242 |
+
the Licensor (including by pseudonym if
|
| 243 |
+
designated);
|
| 244 |
+
|
| 245 |
+
ii. a copyright notice;
|
| 246 |
+
|
| 247 |
+
iii. a notice that refers to this Public License;
|
| 248 |
+
|
| 249 |
+
iv. a notice that refers to the disclaimer of
|
| 250 |
+
warranties;
|
| 251 |
+
|
| 252 |
+
v. a URI or hyperlink to the Licensed Material to the
|
| 253 |
+
extent reasonably practicable;
|
| 254 |
+
|
| 255 |
+
b. indicate if You modified the Licensed Material and
|
| 256 |
+
retain an indication of any previous modifications; and
|
| 257 |
+
|
| 258 |
+
c. indicate the Licensed Material is licensed under this
|
| 259 |
+
Public License, and include the text of, or the URI or
|
| 260 |
+
hyperlink to, this Public License.
|
| 261 |
+
|
| 262 |
+
2. You may satisfy the conditions in Section 3(a)(1) in any
|
| 263 |
+
reasonable manner based on the medium, means, and context in
|
| 264 |
+
which You Share the Licensed Material. For example, it may be
|
| 265 |
+
reasonable to satisfy the conditions by providing a URI or
|
| 266 |
+
hyperlink to a resource that includes the required
|
| 267 |
+
information.
|
| 268 |
+
|
| 269 |
+
3. If requested by the Licensor, You must remove any of the
|
| 270 |
+
information required by Section 3(a)(1)(A) to the extent
|
| 271 |
+
reasonably practicable.
|
| 272 |
+
|
| 273 |
+
b. ShareAlike.
|
| 274 |
+
|
| 275 |
+
In addition to the conditions in Section 3(a), if You Share
|
| 276 |
+
Adapted Material You produce, the following conditions also apply.
|
| 277 |
+
|
| 278 |
+
1. The Adapter's License You apply must be a Creative Commons
|
| 279 |
+
license with the same License Elements, this version or
|
| 280 |
+
later, or a BY-SA Compatible License.
|
| 281 |
+
|
| 282 |
+
2. You must include the text of, or the URI or hyperlink to, the
|
| 283 |
+
Adapter's License You apply. You may satisfy this condition
|
| 284 |
+
in any reasonable manner based on the medium, means, and
|
| 285 |
+
context in which You Share Adapted Material.
|
| 286 |
+
|
| 287 |
+
3. You may not offer or impose any additional or different terms
|
| 288 |
+
or conditions on, or apply any Effective Technological
|
| 289 |
+
Measures to, Adapted Material that restrict exercise of the
|
| 290 |
+
rights granted under the Adapter's License You apply.
|
| 291 |
+
|
| 292 |
+
|
| 293 |
+
Section 4 -- Sui Generis Database Rights.
|
| 294 |
+
|
| 295 |
+
Where the Licensed Rights include Sui Generis Database Rights that
|
| 296 |
+
apply to Your use of the Licensed Material:
|
| 297 |
+
|
| 298 |
+
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
| 299 |
+
to extract, reuse, reproduce, and Share all or a substantial
|
| 300 |
+
portion of the contents of the database;
|
| 301 |
+
|
| 302 |
+
b. if You include all or a substantial portion of the database
|
| 303 |
+
contents in a database in which You have Sui Generis Database
|
| 304 |
+
Rights, then the database in which You have Sui Generis Database
|
| 305 |
+
Rights (but not its individual contents) is Adapted Material,
|
| 306 |
+
|
| 307 |
+
including for purposes of Section 3(b); and
|
| 308 |
+
c. You must comply with the conditions in Section 3(a) if You Share
|
| 309 |
+
all or a substantial portion of the contents of the database.
|
| 310 |
+
|
| 311 |
+
For the avoidance of doubt, this Section 4 supplements and does not
|
| 312 |
+
replace Your obligations under this Public License where the Licensed
|
| 313 |
+
Rights include other Copyright and Similar Rights.
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
| 317 |
+
|
| 318 |
+
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
| 319 |
+
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
| 320 |
+
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
| 321 |
+
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
| 322 |
+
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
| 323 |
+
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
| 324 |
+
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
| 325 |
+
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
| 326 |
+
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
| 327 |
+
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
| 328 |
+
|
| 329 |
+
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
| 330 |
+
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
| 331 |
+
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
| 332 |
+
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
| 333 |
+
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
| 334 |
+
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
| 335 |
+
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
| 336 |
+
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
| 337 |
+
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
| 338 |
+
|
| 339 |
+
c. The disclaimer of warranties and limitation of liability provided
|
| 340 |
+
above shall be interpreted in a manner that, to the extent
|
| 341 |
+
possible, most closely approximates an absolute disclaimer and
|
| 342 |
+
waiver of all liability.
|
| 343 |
+
|
| 344 |
+
|
| 345 |
+
Section 6 -- Term and Termination.
|
| 346 |
+
|
| 347 |
+
a. This Public License applies for the term of the Copyright and
|
| 348 |
+
Similar Rights licensed here. However, if You fail to comply with
|
| 349 |
+
this Public License, then Your rights under this Public License
|
| 350 |
+
terminate automatically.
|
| 351 |
+
|
| 352 |
+
b. Where Your right to use the Licensed Material has terminated under
|
| 353 |
+
Section 6(a), it reinstates:
|
| 354 |
+
|
| 355 |
+
1. automatically as of the date the violation is cured, provided
|
| 356 |
+
it is cured within 30 days of Your discovery of the
|
| 357 |
+
violation; or
|
| 358 |
+
|
| 359 |
+
2. upon express reinstatement by the Licensor.
|
| 360 |
+
|
| 361 |
+
For the avoidance of doubt, this Section 6(b) does not affect any
|
| 362 |
+
right the Licensor may have to seek remedies for Your violations
|
| 363 |
+
of this Public License.
|
| 364 |
+
|
| 365 |
+
c. For the avoidance of doubt, the Licensor may also offer the
|
| 366 |
+
Licensed Material under separate terms or conditions or stop
|
| 367 |
+
distributing the Licensed Material at any time; however, doing so
|
| 368 |
+
will not terminate this Public License.
|
| 369 |
+
|
| 370 |
+
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
| 371 |
+
License.
|
| 372 |
+
|
| 373 |
+
|
| 374 |
+
Section 7 -- Other Terms and Conditions.
|
| 375 |
+
|
| 376 |
+
a. The Licensor shall not be bound by any additional or different
|
| 377 |
+
terms or conditions communicated by You unless expressly agreed.
|
| 378 |
+
|
| 379 |
+
b. Any arrangements, understandings, or agreements regarding the
|
| 380 |
+
Licensed Material not stated herein are separate from and
|
| 381 |
+
independent of the terms and conditions of this Public License.
|
| 382 |
+
|
| 383 |
+
|
| 384 |
+
Section 8 -- Interpretation.
|
| 385 |
+
|
| 386 |
+
a. For the avoidance of doubt, this Public License does not, and
|
| 387 |
+
shall not be interpreted to, reduce, limit, restrict, or impose
|
| 388 |
+
conditions on any use of the Licensed Material that could lawfully
|
| 389 |
+
be made without permission under this Public License.
|
| 390 |
+
|
| 391 |
+
b. To the extent possible, if any provision of this Public License is
|
| 392 |
+
deemed unenforceable, it shall be automatically reformed to the
|
| 393 |
+
minimum extent necessary to make it enforceable. If the provision
|
| 394 |
+
cannot be reformed, it shall be severed from this Public License
|
| 395 |
+
without affecting the enforceability of the remaining terms and
|
| 396 |
+
conditions.
|
| 397 |
+
|
| 398 |
+
c. No term or condition of this Public License will be waived and no
|
| 399 |
+
failure to comply consented to unless expressly agreed to by the
|
| 400 |
+
Licensor.
|
| 401 |
+
|
| 402 |
+
d. Nothing in this Public License constitutes or may be interpreted
|
| 403 |
+
as a limitation upon, or waiver of, any privileges and immunities
|
| 404 |
+
that apply to the Licensor or You, including from the legal
|
| 405 |
+
processes of any jurisdiction or authority.
|
| 406 |
+
|
| 407 |
+
|
| 408 |
+
=======================================================================
|
| 409 |
+
|
| 410 |
+
Creative Commons is not a party to its public
|
| 411 |
+
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
| 412 |
+
its public licenses to material it publishes and in those instances
|
| 413 |
+
will be considered the “Licensor.” The text of the Creative Commons
|
| 414 |
+
public licenses is dedicated to the public domain under the CC0 Public
|
| 415 |
+
Domain Dedication. Except for the limited purpose of indicating that
|
| 416 |
+
material is shared under a Creative Commons public license or as
|
| 417 |
+
otherwise permitted by the Creative Commons policies published at
|
| 418 |
+
creativecommons.org/policies, Creative Commons does not authorize the
|
| 419 |
+
use of the trademark "Creative Commons" or any other trademark or logo
|
| 420 |
+
of Creative Commons without its prior written consent including,
|
| 421 |
+
without limitation, in connection with any unauthorized modifications
|
| 422 |
+
to any of its public licenses or any other arrangements,
|
| 423 |
+
understandings, or agreements concerning use of licensed material. For
|
| 424 |
+
the avoidance of doubt, this paragraph does not form part of the
|
| 425 |
+
public licenses.
|
| 426 |
+
|
| 427 |
+
Creative Commons may be contacted at creativecommons.org.
|
datasets/openslr_yoruba/line_index.tsv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
datasets/openslr_yoruba/yof_00295_00020329077.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a75b570ccc2b9d168aef2b8c9f701720c4fc91296d8dd0082fc58d8537534ec2
|
| 3 |
+
size 466988
|
datasets/openslr_yoruba/yof_00295_00024634140.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06ca341abf35a419e0f941c728a09ef259c6daaa07872b7025454a3abe88a857
|
| 3 |
+
size 278572
|
datasets/openslr_yoruba/yof_00295_00061502962.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:26abb1262599bcc0703ba3ccff31985577469ca2ef6c3efcbec45c455fe131e5
|
| 3 |
+
size 303148
|
datasets/openslr_yoruba/yof_00295_00069502356.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d90dc0be2babe7904cdd447e62d3a07a3ad93d5fecfcb3e889213cc8eed05d50
|
| 3 |
+
size 344108
|
datasets/openslr_yoruba/yof_00295_00072176292.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb4cfdf53f4f94652591edc27b8efcdf59d2617cd5c638e80023b49f2f056333
|
| 3 |
+
size 417836
|
datasets/openslr_yoruba/yof_00295_00092049886.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0654372f6cfbec7f95d5c6fe616b5a47472ced2e3b9cbd6a4e85fe9303e07e70
|
| 3 |
+
size 426028
|
datasets/openslr_yoruba/yof_00295_00099759266.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:65c30107646668c79eca3736a82b5f72f29b22c4bf31c32c3275fda01bb7bb49
|
| 3 |
+
size 385068
|
datasets/openslr_yoruba/yof_00295_00134108651.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d3aae2fb2c6161f58fd496ccb73e3695db66779b6c06fd12cef7233a633e6dbb
|
| 3 |
+
size 262188
|
datasets/openslr_yoruba/yof_00295_00136402910.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:035e43afe685016feb8677986e7c65bf90afe1c76155bc68e1e6b4cac30ce556
|
| 3 |
+
size 393260
|
datasets/openslr_yoruba/yof_00295_00151151204.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:481db2c189ee5738a8a61f50d19198964953ff287eacc937c4e79c034f328318
|
| 3 |
+
size 475180
|
datasets/openslr_yoruba/yof_00295_00154186764.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b3176988e4fbe2261353b61cbdf08a7330faefeb125d88c5398c6c10ba0a0ca0
|
| 3 |
+
size 614444
|
datasets/openslr_yoruba/yof_00295_00161816699.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a785f894291a723e02a744530d2aebee0725573fbe154730d9d510ab4bd73ed9
|
| 3 |
+
size 303148
|
datasets/openslr_yoruba/yof_00295_00216817283.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07f2be6609d6441544cb628eb5f4eb5cac128c9b02a525c6caa5ea9b6feefa7f
|
| 3 |
+
size 327724
|
datasets/openslr_yoruba/yof_00295_00236719811.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2b135235f23abe1b54bcea6d49b68a613829a1956905397488b70c7192eddc61
|
| 3 |
+
size 491564
|
datasets/openslr_yoruba/yof_00295_00248436001.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3414f8528b5dbff298a6c840abaad96c5c2e327f5817f8f593a6232c3381482f
|
| 3 |
+
size 434220
|
datasets/openslr_yoruba/yof_00295_00278884696.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:baf6fa82a8874571c6805ba3cab0167f7a41d29e9d9b1c534a718969e01ada95
|
| 3 |
+
size 458796
|
datasets/openslr_yoruba/yof_00295_00318039388.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bdc89377f4d377cabb528e94f285983dd4ef742fe27dbc5459953c7b7713406b
|
| 3 |
+
size 712748
|
datasets/openslr_yoruba/yof_00295_00334963468.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:561d7537882ee315be704fb6cee425cd8d7c8a8593d80cb0e8b39d72d9d3bb73
|
| 3 |
+
size 450604
|
datasets/openslr_yoruba/yof_00295_00427144639.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:27481050594c10da1f70229bfe1b991e1b8b027cce2dd5d947e20d7ea4720108
|
| 3 |
+
size 466988
|
datasets/openslr_yoruba/yof_00295_00434743286.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f5c5d07bfeb114b4a1610c0a543b830d8e9652103517b27d1d8def89bda49ae
|
| 3 |
+
size 426028
|
datasets/openslr_yoruba/yof_00295_00444601186.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:815c69400a39c0cd575878669d29b981554dadb5c952743ceeb34fa2adfcf3c9
|
| 3 |
+
size 409644
|
datasets/openslr_yoruba/yof_00295_00480434341.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cefbb09d66eb00d823e67d0e3198b13c30bd22bbc36ba1adfeec3bed5e3ede89
|
| 3 |
+
size 393260
|
datasets/openslr_yoruba/yof_00295_00564596981.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:223ec21665ad50253b09e84712b80d9c4318170cf84826f78956a1185e70edc3
|
| 3 |
+
size 335916
|