react-native-audio-waveform icon indicating copy to clipboard operation
react-native-audio-waveform copied to clipboard

[IOS] onCurrentRecordingWaveformData returns currentDecibel with delay

Open Bayramito opened this issue 1 year ago • 2 comments
trafficstars

onCurrentRecordingWaveformData returns incorrect values.

I speak fast to test and say "HEY" and the values are like this

 LOG  0.012771714478731155
 LOG  0.012771714478731155
 LOG  0.012771714478731155
 LOG  0.012771714478731155
 LOG  0.012771714478731155
 LOG  0.012771714478731155
 LOG  0.012771714478731155
 LOG  0.012771714478731155
 LOG  0.012771714478731155
 LOG  0.012771714478731155
 LOG  0.01845887303352356
 LOG  0.6516658663749695
 LOG  0.6516658663749695
 LOG  0.6516658663749695
 LOG  0.6516658663749695
 LOG  0.6516658663749695
 LOG  0.6516658663749695
 LOG  0.6516658663749695
 LOG  0.6516658663749695
 LOG  0.6516658663749695
 LOG  0.6516658663749695
 LOG  0.6516658663749695
 LOG  0.6516658663749695
 LOG  0.6516658663749695
 LOG  0.6516658663749695
 LOG  0.6516658663749695
 LOG  0.6516658663749695
 LOG  0.6516658663749695
 LOG  0.6516658663749695
 LOG  0.6115133166313171
 LOG  0.5385453104972839
 LOG  0.47425442934036255

IMG_88A7B360F5C0-1

this is the output visualization of saying just "HEY"

But on Android the output looks like this

Ekran Resmi 2024-10-28 15 13 26

As you can see values are jumping from 0.01 to 0.6 which is fine, but returns to 0 slowly. I have no idea what can cause this, but it works fine on Android.

UPDATE: tried to remove linear function in native side, but did not work

Bayramito avatar Oct 28 '24 11:10 Bayramito