Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:Speechbrain Speechbrain Prepare UrbanSound8k Root

From Leeroopedia


Knowledge Sources
Domains Sound_Classification, Data_Preparation
Last Updated 2026-02-09 00:00 GMT

Overview

Variant copy of the UrbanSound8K data preparation script located at the recipe root level. This file is identical to the canonical version used in the SoundClassification recipe.

Canonical Page

See Implementation:Speechbrain_Speechbrain_Prepare_UrbanSound8k for full documentation.

Code Reference

Source Location

Signature

def prepare_urban_sound_8k(
    data_folder,
    audio_data_folder,
    save_json_train,
    save_json_valid,
    save_json_test,
    train_fold_nums=[1, 2, 3, 4, 5, 6, 7, 8],
    valid_fold_nums=[9],
    test_fold_nums=[10],
    skip_manifest_creation=False,
):

Import

from urbansound8k_prepare import prepare_urban_sound_8k

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment