How to detect sound frequency for particular sound in iphone?

后端 未结 2 838
你的背包
你的背包 2021-01-15 16:22

I\'m doing an app where I want to detect sound frequency. How to detect frequency for particular sound like dog sound? Does anybody have tutorial or some sample codes?

2条回答
  •  时光取名叫无心
    2021-01-15 16:59

    To detect the frequency, you can use a pitch detection algorithm like FFT.

    Learn more here: http://en.wikipedia.org/wiki/Pitch_detection_algorithm

    You can look at this project for working source code for iOS that uses FFT algorithm to detect frequencies: https://github.com/hollance/SimonSings

提交回复
热议问题