I've tried to add on an AVAudioSession to monitor the decibel levels of the microphone. However it seems that they constantly read as -160dB. This suggests that the App-RTC (iOS) is requiring exclusive access to the microphone.
This suggests that the AVAudioSession is as good as redundant because of the way the RTC modules work.
I have managed to isolate the localAudio track and also the remoteAudio track as RTCAudioTrack objects.
Is it possible somehow to measure the decibel levels of these tracks?
I need to trigger an event when the decibel threshold hits a certain level and it is either of these RTCAudioTracks which can trigger it.
Hi Folks,
I've tried to add on an AVAudioSession to monitor the decibel levels of the microphone. However it seems that they constantly read as -160dB. This suggests that the App-RTC (iOS) is requiring exclusive access to the microphone. This suggests that the AVAudioSession is as good as redundant because of the way the RTC modules work.
I have managed to isolate the localAudio track and also the remoteAudio track as RTCAudioTrack objects. Is it possible somehow to measure the decibel levels of these tracks? I need to trigger an event when the decibel threshold hits a certain level and it is either of these RTCAudioTracks which can trigger it.
Many thanks Steve