mltk.datasets.audio.on_off

On/Off

This is a synthetically generated dataset with the keywords:

  • on

  • off

The samples are 16kHz, 16-bit PCM .wav files.

Variables

DOWNLOAD_URL

Public download URL

VERIFY_SHA1

SHA1 hash of the downloaded archive file

CLASSES

The class labels of the dataset samples

Functions

download([dest_dir, dest_subdir, logger, ...])

Download and extract the dataset

generate_dataset([out_dir])

Generate the dataset

DOWNLOAD_URL = 'https://www.dropbox.com/s/mkvbeyjdks28241/sl_synthetic_on_off.7z?dl=1'

Public download URL

VERIFY_SHA1 = 'b20697b82f883e4dc5e0afc4b7dc950d3339e703'

SHA1 hash of the downloaded archive file

CLASSES = ['on', 'off']

The class labels of the dataset samples

download(dest_dir=None, dest_subdir='datasets/on_off', logger=None, clean_dest_dir=False)[source]

Download and extract the dataset

Return type:

str

Returns:

The directory path to the extracted dataset

Parameters:
  • dest_dir (str) –

  • logger (Logger) –

generate_dataset(out_dir=None)[source]

Generate the dataset

This generates the dataset using the AudioDatasetGenerator Python package provided by the MLTK.

Parameters:

out_dir (str) –