def hz2erbs(hz):
"""
Convert values in Hertz to values in Equivalent rectangle bandwidth (ERBs)
Args:
hz (float): real number in Hz
Returns:
erbs (float): real number in ERBs
References:
[1] Camacho, A., & Harris, J. G. (2008). A sawtooth waveform
inspired pitch estimator for speech and music. The Journal
of the Acoustical Society of America, 124(3), 1638–1652.
https://doi.org/10.1121/1.2951592
"""
erbs = 6.44 * (np.log2(229 + hz) - 7.84)
return erbs
评论列表
文章目录