--- license: cc-by-4.0 language: - sw pretty_name: Afrivoice ASR Swahili dataset task_categories: - automatic-speech-recognition tags: - DigitalUmuganda - DU - sw - swa - Swahili - asr - stt - voice - speech size_categories: - 100K | Domain | Total Hours | Transcribed Hours | Total Clips | Dataset Size (GB) | |--------|-------------|-------------------|-------------|-------------------| | Agriculture | 766.21 | 744.20 | 132,848 | 45.79 | | Education | 565.74 | 549.52 | 98,246 | 55.25 | | Financial | 616.05 | 605.54 | 106,500 | 60.83 | | Government | 591.40 | 579.41 | 102,961 | 49.99 | | Health | 678.16 | 618.20 | 120,584 | 37.40 | | **Total** | **3,217.56** | **3,096.87** | **561,139** | **249.25** | ## How to use The `datasets` library allows you to load and pre-process your dataset in pure Python, at scale. The dataset can be downloaded and prepared in one call to your local drive by using the `load_dataset` function. ### For full dataset ```python from datasets import load_dataset data = load_dataset("DigitalUmuganda/Afrivoice_Swahili") ``` ### For categorical dataset ```python from datasets import load_dataset data = load_dataset("DigitalUmuganda/Afrivoice_Swahili", name="health") ``` The categories options are: - agriculture - education - financial - government - health ## Dataset Structure ### Data Instance ```python { "voice_creator_id":"3bqVVjMdPtUg3YDJE2T0b8jUuTq1", "transcription_creator_id":"GZbQSWNUOoZDNgTSKlz7ZZgXAHC2", "image_filepath":"32749ce.jpg", "image_category":"agriculture", "image_sub_category":"food banks", "category":"agriculture", "audio_filepath":"xadnlONijhyVvN2USCkF.webm", "transcription":"Kuna wamama watatu ambao wanaonekana karibu na magunia ambayo ni ya rangi nyeupe, na pia kuna [cs]katoni[cs], karibu nao kuna mlima ambao unaonekana pamoja na mahindi, na juu pia kuna mawingu ya rangi nyeupe, na ya rangi ya samawati.", "normalized_transcription":"kuna wamama watatu ambao wanaonekana karibu na magunia ambayo ni ya rangi nyeupe na pia kuna cskatonics karibu nao kuna mlima ambao unaonekana pamoja na mahindi na juu pia kuna mawingu ya rangi nyeupe na ya rangi ya samawati", "age_group":"25-35", "gender":"Male", "project_name":"Digital Umuganda", "locale":"sw_KE", "year":2025, "duration":18.3, "location":null, "uid":"3bqVVjMdPtUg3YDJE2T0b8jUuTq1", "key":"xadnlONijhyVvN2USCkF", "dir_path":"agriculture_swahili_dev", "chunk_id":0 } ``` ### Data Fields `voice_creator_id` (`string`): An id for which client (voice) made the recording `transcription_creator_id` (`string`): An id for which client (text) made the transcription `transcription` (`string`): Original audio transcription with punctuation and capitalization `normalized_transcription` (`string`): Original audio transcription without punctuation and capitalization `image_filepath` (`string`): file path of the image file inside the dataset `audio_filepath` (`string`): file path of the audio file inside the dataset `dir_path` (`string`): main directory path of the record `chunk_id` (`string`): chunk identification number where the record belong `age_group` (`string`): age range of the audio recorder `gender` (`string`): The gender of the speaker `location` (`string`): geographical location of the audio recorder `duration` (`int`): length in seconds of the audio file `image_category` (`string`): domain of the image (eg: health, agriculture, finance), used as prompt during audio creation. `image_sub_category` (`string`): Sub-domain label of the image (e.g., within agriculture: “seed farming” or “forestry”), used to guide audio creation. `category` (`string`): category of the record `project` (`string`): project name `locale` (`string`): The locale of the speaker `year` (`int`): Year of recording `project_name` (`string`): project name `location` (`string`): location of the project `key` (`string`): key identifier of the data point # Licensing Information All datasets are licensed under the [Creative Commons license (CC-BY-4)](https://creativecommons.org/licenses/).