Introduction
Welcome to the NaijaVoices dataset. The NaijaVoices dataset consists of 1,800 hours of authentic speech (from over 5,000 diverse speakers!) and expert curated text in Igbo, Hausa, and Yoruba. ~600 hours for each of the three languages. It also boasts of adequate female representation and balanced age-range distribution (young to old speakers). For more about the dataset info visit our website: https://naijavoices.com/. By using this dataset, you acknowledge reading and accepting to use this dataset accoridng to the data usage terms and conditions.
Metadata
The metadata.csv
file contains the metadata for all the audio files. Each row contains:
audio: the audio filename
text: the transcript of the audio
speaker_id: the id of the speaker.
language: the language of the transcript (whether Igbo or Hausa or Yoruba)
age_bracket: the age-range of the speaker
gender: the gender of the speaker
Load the csv like this:
import pandas as pd
df = pd.read_csv('metadata.csv',sep='~')
Usage
By using this dataset, you agree to our Terms and Conditions of usage outlining acceptable and prohibited uses, and acknowledge that any misuse may result in enforcement actions.
1: Unzipping the audio files
The audio files are zipped in split zip files (audio-files.zip
and audio-files.z01
) due to storage limits. Therefore, follow the process below to correctly unzip and access the audio files:
- First of all, you need the
zip
package. You should have this already installed with many Linux distributions. If you need to install it, refer to here for a comprehensive guide on installing it.
- Since the zipping was split, we need to first use the zip command to combine the split zip files into a single zip archive (let's call it
audio.zip
). You do that by running zip -F audio-files.zip --out audio.zip
- Finally use
unzip
package to unzip the audio.zip
file: unzip audio.zip
. Voilà! You can now view the audio files.
2: Loading the audio files
To load the audio files in python, we have found the following process to work best given the nature of the audio data:
- Use
librosa
package. You can install librosa
with pip install librosa
.
- You also need to install
ffmpeg
because librosa
will use the codec of ffmpeg
. On Linux, you can simply do sudo apt install ffmpeg
. You can refer here for a guide on installing ffmpeg
on Windows OS.
- Finally, to load an audio simply do:
audio_path = os.path.join(AUDIO_FOLDER,AUDIO_FILENAME)
audio, sr = librosa.load(audio_path, sr=48_000)
License
Our dataset is licensed under the CC BY-NC-SA 4.0 license. For commercial interests, please check out our membership tiers which offer special privileges.