audio_info#

(s3prl.util.audio_info)

get_cache_dir#

s3prl.util.audio_info.get_cache_dir()[source][source]#

set_cache_dir#

s3prl.util.audio_info.set_cache_dir(cache_dir: str)[source][source]#

get_audio_info#

s3prl.util.audio_info.get_audio_info(audio_paths: List[str], audio_ids: List[str], cache_dir: Optional[str] = None, num_workers: int = 6) List[dict][source][source]#

Use torchaudio.info to retrieve the metadata from audio paths. The retrieved metadata is cached in cache_dir