Dataset Utilities

pyroomacoustics.datasets.utils.download_uncompress(url, path='.', compression=None, context=None)

This functions download and uncompress on the fly a file of type tar, tar.gz, tar.bz2.

Parameters
  • url (str) – The URL of the file

  • path (str, optional) – The path where to uncompress the file

  • compression (str, optional) – The compression type (one of ‘bz2’, ‘gz’, ‘tar’), infered from url if not provided

  • context (SSL certification, optional) – Default is to use none.