iOS

avaudiorecorder

avaudiorecorder的averagePowerForChannel:测噪音

Posted by kunnan on November 15, 2016

前言

  • 分贝的定义如下:

iOS测噪音原理

  • iOS设备测量噪音原理:调用系统麦克风,根据麦克风输入强度计算转化为对应的dB值。

code

  • The app’s Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data.

see also

转载请注明: > avaudiorecorder