Audio Toolkit - hz2mel


: mel = hz2mel (hz)

Convert hz to equivalent mel frequency.

Inputs

hz - input frequency in Hz.

Outputs

mel - Output frequency as a mel value

Examples

Convert 4000 Hz to mel

 mel = hz2mel(4000)
 

Convert a range of Hz to mel

 mel = hz2erb(4000:100:5000)
 

References

O’Shaghnessy, Douglas. Speech Communication: Human and Machine. Reading, MA: Addison-Wesley Publishing Company, 1987