Open zakecSudo opened 1 year ago
I have the same issue, How to resolve it ?
I have the same issue, How to resolve it ?
No luck resolving it so far.
I'm having the same problem. For what it's worth, I worked around it by cloning the project and editing the file FlautoRecorderEngine.mm
:
This is the pertinent line.
[inputNode installTapOnBus: 0 bufferSize: 20480 format: inputFormat block: ...
Reduce bufferSize to 4096 or something, and you should get smaller buffers (not necessarily 4096 bytes, AVAudioEngine doesn't seem to respect this param literally) and thus more frequent updates.
This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.
Flutter Sound Version : 9.2.13
Severity
Result is not what expected
Minor issue
Platforms you faced the error
iOS
Real device
Describe the bug I've created an app that captures data from flutterSoundRecorder and then calculates the volume from it (I know i could just use the decibels from recorder but i also have a use case where i have audioFile already given and i need to calculate the amplitude from it). Everything was working fine on android but when i tested the app on an iOS device i noticed a stutter in live waveform data display. After further investigation i noticed that on android the data from stream is coming in smaller chunks of ~200(recorders sampleRate is set to 16.000) while on the iOS device the data is coming in exact 12.800 samples. I assume the problem is with how often the iOS devices are transmitting the data from the microphone to the stream. Is there any way we could maybe set the bufferSubscription duration in a similar way as we can set subscription duration with Future setSubscriptionDuration(Duration duration) .
My recorder configuration
How i capture data and calculate the volume from it
To Reproduce Steps to reproduce the behavior: