Caution

You're reading an old version of this documentation. If you want up-to-date information, please have a look at 0.9.1.

librosa.core.mel_to_hz

librosa.core.mel_to_hz(mels, htk=False)[source]

Convert mel bin numbers to frequencies

Parameters
melsnp.ndarray [shape=(n,)], float

mel bins to convert

htkbool

use HTK formula instead of Slaney

Returns
frequenciesnp.ndarray [shape=(n,)]

input mels in Hz

See also

hz_to_mel

Examples

>>> librosa.mel_to_hz(3)
200.
>>> librosa.mel_to_hz([1,2,3,4,5])
array([  66.667,  133.333,  200.   ,  266.667,  333.333])