Closed coder-dongjiayi closed 1 month ago
Yes @coder-dongjiayi ,
There is something bad with RAW PCM (notably with Streams) on iOS. I want to rewrite all this bad code, but this is a major work for me, and I don't have much time. So don't expect to have this fixed soon.
In the mean time, perhaps you can record a WAV sound, and translate your file to RAW PCM, ( if you really need RAW PCM ). WAV is just RAW PCM with an envelop in front of the data so it is very easy to remove this envelop. You can use flutter_soud/util/flutter_sound_helper :
Future<void> waveToPCM({
required String inputFile,
required String outputFile,
}) async {
okay, I will try using wav。
Flutter Sound Version :
flutter_sound: ^9.4.6
Severity
Fatal Exception: com.apple.coreaudio.avfaudio required condition is false: format.sampleRate == hwFormat.sampleRate
Platforms you faced the error
iOS
Describe the bug firsebase monitored a number of users who were recording while the program crashed.
my code