This module contains anechoic audio content and impulse responses for listening
and illustration. Note that each file has a separate license that is listed
below.
Quick listening is, e.g., possible with sounddevice installed:
>>> importpyfaraspf>>> importsounddeviceassd>>> # Load, illustrate and play speech signal>>> speech=pf.signals.files.speech()>>> pf.plot.spectrogram(speech)>>> sd.play(speech.time.T,speech.sampling_rate)
The BRIR was recorded with the FABIAN head and torso simulator in the
Berliner Philharmonie [1] (Emitter 17). The head of FABIAN was rotated
25 degree to the right. For more information see [2]. A matching room
impulse response can be obtained by room_impulse_response.
Note
License: CC BY-NC-SA 4.0, David Ackermann, Audio Communication
Group, Technical University of Berlin
Parameters:
diffuse_field_compensation (bool, optional) – Apply a diffuse field compensation to the BRIR. This can be used as a
simple headphone compensation filter when listening to the BRIR. The
default is False, which does not apply the compensation. The
diffuse field compensation is taken from
head_related_impulse_responses
sampling_rate (int, optional) – The sampling rate of the BRIR in Hz. The default of 48000 uses the
BRIR as it is, any other value uses resample
for resampling to the desired sampling rate.
Castanets rhythm from EUB SQAM CD track 27 re-programmed as anechoic
version using samples from the Vienna Symphonic Library [3].
Note
License: CC 0, Matthias Frank
Parameters:
sampling_rate (int, optional) – The sampling rate of the sample in Hz. The default of 44100 uses
the sample as it is, any other value uses
resample for resampling to the desired
sampling rate.
The sample was recorded with microphones close to the drums in a dry
rehearsal room.
Note
License: CC BY Fabian Brinkmann, Johannes M. Arend
Parameters:
sampling_rate (int, optional) – The sampling rate of the sample in Hz. The default of 44100 uses
the sample as it is, any other value uses
resample for resampling to the desired
sampling rate.
The data is an excerpt from the file Flamenco2_U89.wav from the Cologne
University of Applied Sciences, Anechoic Recordings [4].
Note
License: CC BY-SA Michio Woirgard, Philipp Stade, Jeffrey Amankwor,
Benjamin Bernschütz and Johannes Arend, Audio Group, Cologne University
of Applied Sciences
Parameters:
sampling_rate (int, optional) – The sampling rate of the sample in Hz. The default of 48000 uses
the sample as it is, any other value uses
resample for resampling to the desired
sampling rate.
Get HRIRs for specified source positions and sampling rate.
The head-related impulse responses (HRIRs) are taken from the FABIAN
database [5]. They are shortened to 128 samples for convenience. HRIRs are
available on the horizontal plane (elevation equals zero degrees, azimuth
angles available between 0 and 360 degrees in steps of two degrees) and
median plane (azimuth equals 0 or 180 degrees, elevation angles available
between -90 and 90 degrees in steps of two degrees).
Note
License: CC BY 4.0 Fabian Brinkmann, Alexander Lindau, Stefan
Weinzierl, Gunnar Geissler, Steven van de Par, Markus Müller-Trapet,
Rob Opdam, Michael Vorländer
Parameters:
position (list, str, optional) –
The positions for which HRIRs are returned.
'horizontal'
Return horizontal plane HRIRs with an angular resolution of 2
degrees.
'median'
Return median plane HRIRs with an angular resolution of 2 degrees.
Array like
Return HRIRs at azimuth and elevation in degrees. For example
[[30,0],[330,0]] returns HRIRs on the horizontal plane
(0 degree elevation) for azimuth angles of 30 and 330 degrees.
Return HRIRs at positions defined by a pyfar Coordinates object.
Note that the HRIRs were measured at a fixed radius of 1.7 m.
Hence, the radius in position will be ignored.
The default is [[0,0]], which returns the HRIR for frontal sound
incidence. A ValueError is raised if the requested position is not
available.
diffuse_field_compensation (bool, optional) – Apply a diffuse field compensation to the HRIRs. This can be used as a
simple headphone compensation filter when listening to the HRIRs. The
default is False, which does not apply the compensation.
sampling_rate (int, optional) – The sampling rate of the HRIRs in Hz. The default of 44100 uses the
HRIRs as they are, any other value uses resample
for resampling to the desired sampling rate.
Returns:
hrirs (signal) – The HRIRs.
sources (Coordinates) – The source positions for which the HRIRs are returned.
The HpIRs are taken from the FABIAN database [6]. They were measured with
Sennheiser HD-650 headphones.
Note
License: CC BY 4.0 Fabian Brinkmann, Alexander Lindau, Stefan
Weinzierl, Gunnar Geissler, Steven van de Par, Markus Müller-Trapet,
Rob Opdam, Michael Vorländer
Parameters:
sampling_rate (int, optional) – The sampling rate of the HpIRs in Hz. The default of 44100 uses the
HpIRs as they are, any other value uses resample
for resampling to the desired sampling rate.
The RIR was recorded with class I 1/2 inch measurement microphone in the
Berliner Philharmonie [7] (Emitter 17). For more information see [8]. A
matching binaural room impulse response can be obtained by
brir.
Note
License: CC BY-NC-SA 4.0, David Ackermann, Audio Communication
Group, Technical University of Berlin.
Parameters:
sampling_rate (int) – The sampling rate of the RIR in Hz. The default of 48000 uses the
RIR as it is, any other value uses resample
for resampling to the desired sampling rate.
The samples were taken from ‘Music for Archimedes’ [9] (Tracks 4, 5) with
kind permission of Bang & Olufsen for research and personal purposes. Any
commercial use or publication requires approval of Bang & Olufsen. For more
information on the recordings see [10].
Note
Copyright: Bang & Olufsen
Parameters:
voice (str, optional) – Choose between a 'female' (default) and 'male' voice.
sampling_rate (int, optional) – The sampling rate of the sample in Hz. The default of 44100 uses
the sample as it is, any other value uses
resample for resampling to the desired
sampling rate.