So I am trying to create the waveform shape in react native while recording an audio, I looked up many packages but they all need an audio url so they don't support realtime recording, I tried creating one by myself which i used a package that provides me with the decibals value when recording and then push the value to state array but it cause too many lags since I setstate every 0.5 sec. Any suggestion?
Take a look at this repository: https://github.com/VinamraVij/react-native-audio-wave-recording. I've implemented a method for recording audio with a waveform display and added animations that sync with the waveform and audio during recording. You may need to adjust the pitch values to improve the waveform visualization, as the pitch settings vary between Android and iOS.
Checkout video https://www.youtube.com/watch?v=P3E_8gZ27MU
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With