You need to register at NaijaVoices to use this dataset. It'll only take a minute
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
Click here to register on NaijaVoices in the tier that corresponds to your use case.
Log in or Sign Up to review the conditions and access this dataset content.
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
If you encounter any issues with the processes below, please create a discussion here and we will help.
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 runningzip -F audio-files.zip --out audio.zip
- Finally use
unzip
package to unzip theaudio.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 installlibrosa
withpip install librosa
. - You also need to install
ffmpeg
becauselibrosa
will use the codec offfmpeg
. On Linux, you can simply dosudo apt install ffmpeg
. You can refer here for a guide on installingffmpeg
on Windows OS. - Finally, to load an audio simply do:
audio_path = os.path.join(AUDIO_FOLDER,AUDIO_FILENAME) # AUDIO_FILENAME is from the `audio` column of the metadata.csv and AUDIO_FOLDER is the path to the unzipped audio file.
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.
- Downloads last month
- 39