clarity.evaluator.mbstoi.mbstoi module

Modified Binaural Short-Time Objective Intelligibility (MBSTOI) Measure

clarity.evaluator.mbstoi.mbstoi.mbstoi(left_ear_clean: ndarray, right_ear_clean: ndarray, left_ear_noisy: ndarray, right_ear_noisy: ndarray, sr_signal: float, gridcoarseness: int = 1, sample_rate: float = 10000.0, n_frame: int = 256, fft_size_in_samples: int = 512, n_third_octave_bands: int = 15, centre_freq_first_third_octave_hz: int = 150, n_frames: int = 30, dyn_range: int = 40, tau_min: float = -0.001, tau_max: float = 0.001, gamma_min: int = -20, gamma_max: int = 20, sigma_delta_0: float = 6.5e-05, sigma_epsilon_0: float = 1.5, alpha_0_db: int = 13, tau_0: float = 0.0016, level_shift_deviation: float = 1.6) float[source]

The Modified Binaural Short-Time Objective Intelligibility (mbstoi) measure.

Parameters:
  • left_ear_clean (ndarray) – Clean speech signal from left ear.

  • right_ear_clean (ndarray) – Clean speech signal from right ear.

  • left_ear_noisy (ndarray) – Noisy/processed speech signal from left ear.

  • right_ear_noisy (ndarray) – Noisy/processed speech signal from right ear.

  • fs_signal (int) – Frequency sample rate of signal.

  • gridcoarseness (int) – Grid coarseness as denominator of ntaus and ngammas. Defaults to 1.

  • sample_rate (int) – Sample Rate.

  • n_frame (int) – Number of Frames.

  • fft_size_in_samples (int) – ??? size in samples.

  • n_third_octave_bands (int) – Number of third octave bands.

  • centre_freq_first_third_octave_hz (int) – 150,

  • n_frames (int) – Number of Frames.

  • dyn_range (int) – Dynamic Range.

  • tau_min (float) – Min Tau the ???

  • tau_max (float) – Max Tau the ???

  • gamma_min (int) – Minimum gamma the ???

  • gamma_max (int) – Maximum gamma the ???

  • sigma_delta_0 (float) –

    ???

  • sigma_epsilon_0 (float) –

    ???

  • alpha_0_db (int) –

    ???

  • tau_0 (float) –

    ???

  • level_shift_deviation (float) –

    ???

Returns:

mbstoi index d.

Return type:

float

Notes

All title, copyrights and pending patents pertaining to mbtsoi[1]_ in and to the original Matlab software are owned by oticon a/s and/or Aalborg University. Please see http://ah-andersen.net/code/<http://ah-andersen.net/code/>