audio_waveforms
audio_waveforms copied to clipboard
Waveforms of no sound at all appear at their max size instead of their min size
My code:
@override
void initState() {
super.initState();
_recorderController = RecorderController();
_recorderController.record();
}
...
AudioWaveforms(
size: const Size(230, 50),
recorderController: _recorderController,
waveStyle: const WaveStyle(
waveColor: Colors.pink,
spacing: 8.0,
extendWaveform: true,
showMiddleLine: false,
),
)
For some reason the wave forms of absolute silence appear at max size.
Here is a photo - took the screenshot when there was no sound at all

It is important to mention that when there is sound the waveforms seems to work as expected.
From your this #44 issue I see you are using an emulator. Can you please test it on a real device because android emulators behave weirdly in different scenarios?
Here the same thing happens, I tested it on a real device.
Adding this ..normalizationFactor = 40, works here for me. The default for android is 60.
That seems to improve this, thank you so much
Acutely after a lot of testing setting the ..normalizationFactor = 40 is still not good enough. for some reason the sound waves does not react correctly to my voice. further more when I play the recording using AudioFileWaveforms the sound waves look completely different than the sound waves while recording. I think it is a bug.