Detect Matching Sounds in Audio Stream

时光总嘲笑我的痴心妄想 提交于 2021-01-29 10:26:37

问题


I'd like to compare the audio output from a PC game to known audio files (*.mp3 for example).

If the audio stream contains the recorded audio, I'd like to measure the amplitude of the matching audio in the left/right stereo channels. The goal is to determine the direction and distance of the sound (footsteps/gunshots).

It would also be a bonus to amplify the matching audio without affecting the rest of the audio stream.

Are there any open-source projects that would be a good reference? Any language (especially C++) would be great.

  • Similar question using external hardware with a 3DS: https://electronics.stackexchange.com/questions/182370/arduino-recognizing-pre-recorded-sound-clips-from-an-audio-stream
  • Phone dial pad tone detection in C++: https://sourceforge.net/projects/dtmf/?source=navbar

回答1:


Broadcast Audience Research Council (BARC) encodes TV channel audio with unique ID of the channel to identify the channel and measure the viewing time.

For example you can encode a tone with unique frequency for each audio. At the receiver multiple tone detectors using IC556 identifies the embedded tone. An Arduino can then send the identity to your program.



来源:https://stackoverflow.com/questions/51224523/detect-matching-sounds-in-audio-stream

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!