Frequency of Live Mic Audio

Hello! How can I make the integration of h5p (any contetnt type) and  sound (musical notes) frequency of Live Mic Audio?

If I use free libraries or smth like this https://stackoverflow.com/questions/23113580/simple-code-to-calculate-fr...
or https://github.com/cwilso/PitchDetect

Or may be with other solutuoins?

If I look for an e.g. js developer what way should we better start to create the integration?