SoundClassifier sample not working in Firefox
Opened this issue · 1 comments
enkatsu commented
Hello ml5.js community,
The sample code for the SoundClassifier did not work in Firefox, but it worked fine in Chrome.
Doesn't ml5.js support Firefox?
Browser
Firefox: 131.0.2 (aarch64)
Sample code
https://docs.ml5js.org/#/reference/sound-classifier?id=quick-start
https://editor.p5js.org/ml5/sketches/HUm7NYMW3
Error message
TypeError: results is null
at gotResult (/sketch.js:90:3)
at getTopKClasses (webpack:[//ml5/src/SoundClassifier/speechcommands.js:50:18](https://ml5/src/SoundClassifier/speechcommands.js:50:18))
enkatsu commented
For your reference, a similar TensorFlow.js example worked in Firefox.
https://github.com/tensorflow/tfjs-models/tree/master/speech-commands
https://storage.googleapis.com/tfjs-speech-model-test/2019-01-03a/dist/index.html