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?