Read microphone loudness in React Native
$ npm install react-native-loudness --save
Mostly automatic installation
$ react-native link react-native-loudness
Required Additional Steps
Privacy - Micronphone Usage Descriptionusing XCode.
<uses-permission android:name="android.permission.RECORD_AUDIO" />.
For Android, you have to request permission in the code. Please refer to PermissionsAndroid for more details. Example App also demonstrates the permission request process in Android. The example App has not been tested on IOS.
Loudness is in dbFS from -160 to 0, where -160 represents absolute silence and 0 represents the maximum loudness the microphone can sense.
;const loudness = ;loudnessstart;loudness;loudness;