Is there a way to meter audio input using Expo-AV

Please provide the following:

  1. SDK Version: 34.0
  2. Platforms(Android/iOS/web/all): iOS

How can I meter audio input using Expo-AV to tell current decibel level of the audio on a non ejected application. I’m trying to show a modal when audio input gets too loud.

If nobody else has a better idea, I think you can get the volume (between 0 and 1) from a PlaybackStatus object and show your warning if that is e.g. > 0.8 or whatever seems appropriate.

I doubt you’d be able to get the actual dB level.

Thank you for your reply wodin, however even if I record samplings say every second or so and then test the PlaybackStatus Object volume they always come back at 1 and are not based off how loud the actual file content is.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.