how to use volume sensor


I’m trying to create kind of Volume sensor with Expo, but I don’t see any option how to get actual volume info. I’m now working with Expo.Audio, here is my code:

const recording = new Expo.Audio.Recording(); try { await recording.prepareToRecordAsync(Expo.Audio.RECORDING_OPTIONS_PRESET_HIGH_QUALITY); await recording.startAsync(); recording.setProgressUpdateInterval(config.updateInterval); recording.setOnRecordingStatusUpdate(status => { console.log(status); }); } catch (error) { console.log(error); }

Status object has just few info. Is there any other option how to measure volume?


Hey @anton1000,

We currently don’t expose volume information with any of our APIs. Sorry about that.




Ok, thx for clarifying this.

closed #4

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