开发者

python library to compare a .wav with mic input?

开发者 https://www.devze.com 2023-01-31 20:34 出处:网络
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 t

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号