pseudo_data#

(s3prl.util.pseudo_data)

Create pseudo data

Authors
  • Leo 2022

pseudo_audio#

class s3prl.util.pseudo_data.pseudo_audio(secs: List[float], sample_rate: int = 16000)[source][source]#

Bases: object

This context manager returns filepaths (List[str]) and num_samples (List[int]) on entering

get_pseudo_wavs#

s3prl.util.pseudo_data.get_pseudo_wavs(seed: int = 0, n: int = 2, min_secs: int = 1, max_secs: int = 3, sample_rate: int = 16000, device: str = 'cpu', padded: bool = False)[source][source]#