Core Software
HAAQI Audio Quality model​
This is a python implementation of the Hearing Aid Audio Quality Index (HAAQI) model which is used for objective estimation. This will be used in the stage 1 evaluation of entrants (see Rules).
Note that HAAQI is not a binaural metric, instead, each channel must be processed separately. We average the left and right scores to produce a final overall score.
Instructions and recommendations on the use of HAAQI​
You can call the HAAQI metric using the clarity.evaluator.haaqi.compute_haaqi
function as:
compute_haaqi(
processed_signal,
reference_signal,
processed_sample_rate,
reference_sample_rate,
audiogram,
equalisation,
level1
)
- The
processed_signal
corresponds to the output signal fromenhancement
block in the baseline. - The
reference_signal
corresponds to the amplified reference signal. This is generated by theevaluation
block in the baseline. - It is recommended to resample the
processed_signal
andreference_signal
signals to 24,000 Hz before calling the metric. - Set the parameters
processed_sample_rate
andreference_sample_rate
equal to24000
. - The audiogram corresponds to the left or right
audiogram object
. - Set
equalisation
to 2, which indicates to HAAQI that thereference_signal
hasNAL-R
applied to it. - Set the
level1
parameter to the level of the reference signal before applying the hearing aid amplification (NAL-R). Recommended to set it as65 - 20 * log10(RMS(reference signal before NAL-R))
Please note that the level1
parameter uses the reference signal without NAL-R amplification.
And, the reference_signal
expects the amplified version of the same signal used in level1
.
4. References​
[1] Byrne, Denis, and Harvey Dillon. "The National Acoustic Laboratories'(NAL) new procedure for selecting the gain and frequency response of a hearing aid." Ear and hearing 7.4 (1986): 257-265.