load_audio#

(s3prl.dataio.dataset.load_audio)

Dataset#

class s3prl.dataio.dataset.load_audio.Dataset(*args, **kwds)[source][source]#

Bases: Dataset

getinfo(index: int)[source][source]#

LoadAudio#

class s3prl.dataio.dataset.load_audio.LoadAudio(filepaths: List[str], start_secs: Optional[List[float]] = None, end_secs: Optional[List[float]] = None, sox_effects: Optional[Tuple[Tuple[str]]] = None, individual_sox_effects: Optional[List[Tuple[Tuple[str]]]] = None, max_secs: Optional[float] = None, generator: Optional[Random] = None, sample_rate: int = 16000)[source][source]#

Bases: Dataset

Parameters:
  • start_secs – use None if load from start

  • end_secs – use None if load to end

getinfo(index: int)[source]#