akt#
Datasets from the Audio Communications Group of TU Berlin, Berlin, Germany.
BRAS-RS8: Benchmark for Room Acoustical Simulation: Reference Scene 8.
FABIAN: The FABIAN head-related transfer function data base.
HUTUBS: The HUTUBS head-related transfer function (HRTF) database.
- class irdl.akt.AKTZipBaseDataset#
Bases:
SofaBaseDatasetBase class for zipped datasets of the Audio Communications Group of TU Berlin.
- _download(provider_dir: Path, **_dataset_kwargs) Path#
Download BRAS-RS8 Scene_descriptions.zip archive to the provider directory.
Only downloads the archive if it is not already cached in the provider directory. Returns the ZIP path so that
_processcan extract the requested SOFA file into the ingest directory.
- _process(provider_artifact: Path, ingest_path: Path, **_dataset_kwargs) Path#
Extract the requested SOFA file from the ZIP into the ingest directory.
- Parameters:
- provider_artifact
pathlib.Path Path to the ZIP archive in the provider directory.
- ingest_path
pathlib.Path Path to the SOFA file in the ingest directory.
- **_dataset_kwargs
dict Unused dataset-specific parameters (accepted for compatibility).
- provider_artifact
- Returns:
pathlib.PathPath to the extracted SOFA file in the ingest directory.
- class irdl.akt.BrasRs8Dataset#
Bases:
AKTZipBaseDatasetDownload the BRAS RS8 dataset from DepositOnce.
BRAS RS8 extends the Benchmark for Room Acoustical Simulation (BRAS) by a finite curved reflector. The dataset contains nine scenes with various source and receiver configurations, covering dispersing and focusing reflections, as well as diffraction around the surface. In total, nearly 3,000 impulse responses were measured under controlled anechoic conditions.
- Attributes:
- _category = 'room_impulse_responses'#
- _validate_params(**dataset_kwargs) None#
Validate BRAS-RS8-specific parameters.
- Parameters:
- **dataset_kwargs
dict Must contain ‘scene’ (one of the valid scene identifiers).
- **dataset_kwargs
- Raises:
ValueErrorIf scene is not one of the valid scene identifiers.
- classmethod get(scene: str = '01a', cache_dir: Path | str | None = None, export_dir: Path | str | None = None, output_format: str = 'pyfar') dict | Path | None#
Download the BRAS RS8 dataset from DepositOnce.
DOI: https://doi.org/10.14279/depositonce-25649
- Parameters:
- cache_dir
str Cache directory for downloads. Defaults is the OS user cache directory. This default can be overridden by setting IRDL_CACHE_DIR environment variable.
- export_dir
str,optional Directory for final output. If specified, the data will be exported to <export_dir/BRAS-RS8/>. Else, it remains in <cache_dir/output/>.
- output_format
str Output format: ‘pyfar’, ‘numpy’, ‘hdf5’, ‘sofa’, or ‘raw’.
- scene
str,optional Scene identifier to download. One of: ‘01a’, ‘01b’, ‘01c’, ‘02’, ‘03a’, ‘03b’, ‘03c’, ‘03d’, ‘03e’. Default is ‘01a’.
- cache_dir
- Returns:
- class irdl.akt.FabianDataset#
Bases:
AKTZipBaseDatasetDownload and extract the FABIAN HRTF database from DepositOnce.
- Attributes:
- _category = 'head_related_impulse_responses'#
- _validate_params(**dataset_kwargs) None#
Validate FABIAN-specific parameters.
- Parameters:
- **dataset_kwargs
dict Parameters to validate. Expected keys: kind, hato.
- **dataset_kwargs
- Raises:
ValueErrorIf kind or hato is out of range.
- classmethod get(kind: str = 'measured', hato: int = 0, cache_dir: str | Path | None = None, export_dir: str | Path | None = None, output_format: str = 'pyfar') dict | Path | None#
Download and extract the FABIAN HRTF database from DepositOnce.
DOI: https://doi.org/10.14279/depositonce-5718.5
- Parameters:
- cache_dir
str Cache directory for downloads. Defaults is the OS user cache directory. This default can be overridden by setting IRDL_CACHE_DIR environment variable.
- export_dir
str,optional Directory for final output. If specified, the data will be exported to <export_dir/FABIAN/>. Else, it remains in <cache_dir/output/>.
- output_format
str Output format: ‘pyfar’, ‘numpy’, ‘hdf5’, ‘sofa’, or ‘raw’.
- kind
str,optional Type of HRTF to download. Either ‘measured’ or ‘simulated’. Default is ‘measured’.
- hato
int,optional Head-above-torso-rotation of HRTFs in degrees. One of: 0, 10, 20, 30, 40, 50, 310, 320, 330, 340, 350. Default is 0.
- cache_dir
- Returns:
- class irdl.akt.HutubsDataset#
Bases:
AKTZipBaseDatasetDownload the HUTUBS HRTF database from DepositOnce.
- _category = 'head_related_impulse_responses'#
- classmethod get(subject: int = 1, kind: str = 'measured', cache_dir: str | Path | None = None, export_dir: str | Path | None = None, output_format: str = 'pyfar') dict | Path | None#
Download the HUTUBS HRTF database from DepositOnce.
DOI: https://doi.org/10.14279/depositonce-8487
- Parameters:
- cache_dir
str Cache directory for downloads. Defaults is the OS user cache directory. This default can be overridden by setting IRDL_CACHE_DIR environment variable.
- export_dir
str,optional Directory for final output. If specified, the data will be exported to <export_dir/HUTUBS/>. Else, it remains in <cache_dir/output/>.
- output_format
str Output format: ‘pyfar’, ‘numpy’, ‘hdf5’, ‘sofa’, or ‘raw’.
- subject
int,optional Subject identifier. Must be an integer in the range 1 to 96. Default is 1.
- kind
str,optional HUTUBS HRIR variant. Either ‘measured’ or ‘simulated’. Default is ‘measured’.
- cache_dir
- Returns: