python library to compare a .wav with mic input?
I need a python library or module or whatever that can compare a .wav file to microphone input without too too much code开发者_StackOverflow中文版. Sample code would be cool too. TY!
I don't know if there's a library already for that, but if you have the microphone input as a WAV file as well, you can use the wave
and audioop
modules and write it yourself.
If you're trying to compare something like, what words people are saying, this would have to be a fairly complex piece of code. You could directly compare them at a frequency/wave level, but you'll very rarely if ever get a match.
精彩评论