Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Record audio and show waveform react native

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?

like image 207
Hadi Nasser Avatar asked Jan 23 '26 08:01

Hadi Nasser


1 Answers

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

like image 93
Vinamra Vij Avatar answered Jan 24 '26 22:01

Vinamra Vij



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!