librosa.core.hz_to_mel¶
-
librosa.core.
hz_to_mel
(frequencies, htk=False)[source]¶ Convert Hz to Mels
Parameters: - frequencies : number or np.ndarray [shape=(n,)] , float
scalar or array of frequencies
- htk : bool
use HTK formula instead of Slaney
Returns: - mels : number or np.ndarray [shape=(n,)]
input frequencies in Mels
See also
Examples
>>> librosa.hz_to_mel(60) 0.9 >>> librosa.hz_to_mel([110, 220, 440]) array([ 1.65, 3.3 , 6.6 ])