dcase_util.containers.AudioContainer.load_from_youtube

AudioContainer.load_from_youtube(query_id, start=None, stop=None, mono=False, silent=True)[source]

Load audio data from youtube

Parameters
query_idstr

Youtube query id.

startfloat, optional

Segment start time in seconds. Default value None

stopfloat, optional

Segment stop time in seconds. Default value None

monobool

Monophonic target, multi-channel audio will be down-mixed. Default value False

silentbool

Switch to show progress bar. Default value True

Returns
self
Raises
IOError:

Youtube video does not exists or cannot be downloaded