audio audioduration (s) 1.32 243 | chunk_id int32 0 16 | start float32 0.03 1.12k | end float32 3.22 1.3k | duration float32 1.32 243 | opening_speaker stringclasses 1
value | turn_count int32 2 23 | turns_detail stringlengths 111 1.4k |
|---|---|---|---|---|---|---|---|
0 | 0.031 | 3.22 | 3.189 | SPEAKER_01 | 2 | [{"start": 0.031, "end": 1.027, "speaker": "SPEAKER_01"}, {"start": 1.212, "end": 3.22, "speaker": "SPEAKER_00"}] | |
1 | 3.22 | 6.14 | 2.919 | SPEAKER_01 | 2 | [{"start": 3.22, "end": 3.929, "speaker": "SPEAKER_01"}, {"start": 4.03, "end": 6.14, "speaker": "SPEAKER_00"}] | |
2 | 6.241 | 15.775 | 9.534 | SPEAKER_01 | 3 | [{"start": 6.241, "end": 11.658, "speaker": "SPEAKER_01"}, {"start": 12.147, "end": 15.286, "speaker": "SPEAKER_01"}, {"start": 15.286, "end": 15.775, "speaker": "SPEAKER_00"}] | |
3 | 15.775 | 20.028 | 4.253 | SPEAKER_01 | 2 | [{"start": 15.775, "end": 19.606, "speaker": "SPEAKER_01"}, {"start": 19.606, "end": 20.028, "speaker": "SPEAKER_00"}] | |
4 | 20.028 | 24.584 | 4.556 | SPEAKER_01 | 3 | [{"start": 20.028, "end": 22.964, "speaker": "SPEAKER_01"}, {"start": 23.234, "end": 24.01, "speaker": "SPEAKER_01"}, {"start": 24.01, "end": 24.584, "speaker": "SPEAKER_00"}] | |
5 | 24.584 | 134.322006 | 109.737999 | SPEAKER_01 | 10 | [{"start": 24.584, "end": 24.972, "speaker": "SPEAKER_01"}, {"start": 24.972, "end": 40.008, "speaker": "SPEAKER_00"}, {"start": 40.43, "end": 61.54, "speaker": "SPEAKER_00"}, {"start": 63.076, "end": 92.506, "speaker": "SPEAKER_00"}, {"start": 93.35, "end": 113.465, "speaker": "SPEAKER_00"}, {"start": 114.781, "end": ... | |
6 | 134.727005 | 136.042999 | 1.316 | SPEAKER_01 | 2 | [{"start": 134.727, "end": 135.689, "speaker": "SPEAKER_01"}, {"start": 135.689, "end": 136.043, "speaker": "SPEAKER_00"}] | |
7 | 136.042999 | 356.717987 | 220.673996 | SPEAKER_01 | 23 | [{"start": 136.043, "end": 140.144, "speaker": "SPEAKER_01"}, {"start": 140.735, "end": 142.338, "speaker": "SPEAKER_01"}, {"start": 142.912, "end": 144.363, "speaker": "SPEAKER_01"}, {"start": 145.004, "end": 148.43, "speaker": "SPEAKER_01"}, {"start": 149.358, "end": 153.948, "speaker": "SPEAKER_01"}, {"start": 155.3... | |
8 | 358.016998 | 492.173004 | 134.156006 | SPEAKER_01 | 12 | [{"start": 358.017, "end": 365.594, "speaker": "SPEAKER_01"}, {"start": 365.965, "end": 371.028, "speaker": "SPEAKER_01"}, {"start": 371.568, "end": 374.268, "speaker": "SPEAKER_01"}, {"start": 374.268, "end": 400.188, "speaker": "SPEAKER_00"}, {"start": 400.677, "end": 413.35, "speaker": "SPEAKER_00"}, {"start": 414.1... | |
9 | 492.223999 | 535.997986 | 43.773998 | SPEAKER_01 | 3 | [{"start": 492.224, "end": 492.578, "speaker": "SPEAKER_01"}, {"start": 492.848, "end": 497.32, "speaker": "SPEAKER_00"}, {"start": 497.877, "end": 535.998, "speaker": "SPEAKER_00"}] | |
10 | 536.200012 | 641.939026 | 105.738998 | SPEAKER_01 | 4 | [{"start": 536.2, "end": 553.261, "speaker": "SPEAKER_01"}, {"start": 553.97, "end": 596.41, "speaker": "SPEAKER_00"}, {"start": 597.22, "end": 618.517, "speaker": "SPEAKER_00"}, {"start": 618.854, "end": 641.939, "speaker": "SPEAKER_00"}] | |
11 | 641.939026 | 687.585999 | 45.646999 | SPEAKER_01 | 3 | [{"start": 641.939, "end": 642.31, "speaker": "SPEAKER_01"}, {"start": 642.31, "end": 644.15, "speaker": "SPEAKER_00"}, {"start": 644.167, "end": 687.586, "speaker": "SPEAKER_00"}] | |
12 | 687.637024 | 791.536011 | 103.899002 | SPEAKER_01 | 7 | [{"start": 687.637, "end": 688.092, "speaker": "SPEAKER_01"}, {"start": 688.362, "end": 714.67, "speaker": "SPEAKER_00"}, {"start": 715.21, "end": 716.122, "speaker": "SPEAKER_00"}, {"start": 716.898, "end": 720.323, "speaker": "SPEAKER_00"}, {"start": 720.931, "end": 722.686, "speaker": "SPEAKER_00"}, {"start": 723.22... | |
13 | 792.228027 | 807.060974 | 14.833 | SPEAKER_01 | 2 | [{"start": 792.228, "end": 792.768, "speaker": "SPEAKER_01"}, {"start": 792.768, "end": 807.061, "speaker": "SPEAKER_00"}] | |
14 | 807.583984 | 876.973999 | 69.389999 | SPEAKER_01 | 8 | [{"start": 807.584, "end": 813.254, "speaker": "SPEAKER_01"}, {"start": 815.498, "end": 817.81, "speaker": "SPEAKER_00"}, {"start": 818.3, "end": 819.498, "speaker": "SPEAKER_00"}, {"start": 820.544, "end": 824.51, "speaker": "SPEAKER_00"}, {"start": 824.965, "end": 842.667, "speaker": "SPEAKER_00"}, {"start": 843.241,... | |
15 | 877.447021 | 1,120.936035 | 243.488998 | SPEAKER_01 | 16 | [{"start": 877.447, "end": 877.767, "speaker": "SPEAKER_01"}, {"start": 878.341, "end": 878.965, "speaker": "SPEAKER_00"}, {"start": 879.826, "end": 884.399, "speaker": "SPEAKER_00"}, {"start": 885.057, "end": 890.575, "speaker": "SPEAKER_00"}, {"start": 891.419, "end": 901.645, "speaker": "SPEAKER_00"}, {"start": 901.... | |
16 | 1,121.23999 | 1,303.692017 | 182.453003 | SPEAKER_01 | 15 | [{"start": 1121.24, "end": 1133.086, "speaker": "SPEAKER_01"}, {"start": 1133.812, "end": 1159.293, "speaker": "SPEAKER_00"}, {"start": 1162.111, "end": 1164.777, "speaker": "SPEAKER_00"}, {"start": 1165.486, "end": 1169.722, "speaker": "SPEAKER_00"}, {"start": 1170.515, "end": 1173.367, "speaker": "SPEAKER_00"}, {"sta... |
Swahili Culture Conversational Dataset (Stereo)
Overview
This dataset contains conversational Swahili audio samples derived from the Culture genre subset of KenCorpus_audio (CC-BY-4.0), restructured into diarized, speaker-separated stereo audio chunks suitable for fine-tuning speech-to-speech dialogue models such as Moshi / Hibiki.
Processing notebook: the full pipeline (diarization, conversational chunking, stereo construction, and upload) is available here: Google Colab notebook
Source Data
- Origin:
Kencorpus/KenCorpus_audio, Culture genre subset - License: CC-BY-4.0 (inherited from the source dataset — attribution to KenCorpus required for any use of this dataset)
- Language: Swahili (Kiswahili)
Processing Pipeline
- Speaker diarization — Each source audio file was processed with
pyannote/speaker-diarization-community-1to detect speaker turns and boundaries. - Turn merging & noise filtering — Adjacent same-speaker turns were merged, and very short segments (likely diarization artifacts) were filtered out.
- Conversational chunking — Audio was split into conversational cycles: a chunk begins when a speaker starts talking and ends when that same speaker resumes after at least one other speaker has spoken in between. This captures natural dialogue exchanges regardless of monologue length or number of interjections, without assuming strict speaker alternation.
- Stereo channel construction — For each chunk, a two-channel (stereo)
audio file was built from the mono source: left channel contains only the
first speaker's segments (silence elsewhere), right channel contains only
the second speaker's segments (silence elsewhere). This mirrors the
channel-per-speaker structure expected by Moshi-style speech-to-speech
dialogue models (similar in spirit to
kyutai/DailyTalkContiguous).
Full code for every step above is in the linked Colab notebook.
⚠️ Important: Stereo Audio Decoding
This dataset's audio_stereo column contains genuine 2-channel stereo
audio. However, the Hugging Face datasets library's built-in Audio
feature automatically downmixes multi-channel audio to mono on decode —
accessing example["audio_stereo"]["array"] the normal way will silently
return a flattened mono array, even though the underlying stored file is
correctly stereo.
Do not rely on the default decode. Load the column with decode=False
and decode manually with soundfile to preserve both channels:
from datasets import load_dataset, Audio
import soundfile as sf
import io
ds = load_dataset("rlabz/sample_sw_culture", split="train")
ds = ds.cast_column("audio_stereo", Audio(decode=False))
def get_stereo_array(example):
data, sr = sf.read(io.BytesIO(example["audio_stereo"]["bytes"]))
return data, sr # shape: (frames, 2)
If you skip this step, any downstream fine-tuning (e.g. Moshi speech-text fine-tuning) will silently train on mono audio with the two speakers merged into one channel, defeating the purpose of this dataset's structure.
Dataset Fields
| Field | Description |
|---|---|
audio_stereo |
Stereo audio: left = first speaker's segments, right = second speaker's segments (decode manually, see above) |
left_speaker |
Diarization label of the speaker on the left channel |
right_speaker |
Diarization label of the speaker on the right channel |
chunk_id |
Index of this conversational chunk within its source file |
start / end |
Start/end time (seconds) of this chunk in the original source audio |
duration |
Chunk duration in seconds |
opening_speaker |
Speaker who opens this conversational cycle |
turn_count |
Number of merged speaker turns contained in this chunk |
turns_detail |
JSON list of {start, end, speaker} for every turn in the chunk (absolute timestamps, relative to the original source file) |
Intended Use
Prepared for fine-tuning speech-to-speech / conversational speech models (e.g. Moshi, Hibiki) on Swahili dialogue. May also be useful for diarization evaluation or speaker-turn-aware TTS work.
Limitations
- Speaker channel separation is diarization-gated, not true acoustic source separation — during genuine overlapping speech, some bleed-through between channels can occur.
- Diarization accuracy directly affects channel assignment quality; no manual verification of speaker labels was performed at scale.
License & Attribution
This dataset is derived from Kencorpus/KenCorpus_audio and is distributed
under CC-BY-4.0. Please attribute the original KenCorpus authors when
using this dataset.
- Downloads last month
- 33