Open quisvox opened 2 years ago
me too.
Flutter 2.8.0 on real device (android 7.1)
Update:
I realized that the file extension must be compatible with the codec. I think this is an additional operation. Maybe I would like my file extension to be different from codec.
audioRecorder.startRecorder(
toFile: '$audioRecPath.amr',
audioSource: AudioSource.microphone,
codec: Codec.amrWB
);
This throws an error:
audioRecorder.startRecorder(
toFile: '$audioRecPath.aac', <<-- aac
audioSource: AudioSource.microphone,
codec: Codec.amrWB <<-- amr
);
this is bad. very bad.
Yes, same problem, shouldn't depend on the file extension
Yes, same problem for me, specially on codec: Codec.mp3 For default codec and accMp4 work fine.
Record mp3 nor raw pcm are supported. Please refer to https://flutter-sound.canardoux.xyz/guides_codec.html
Record mp3 are also unsupported now
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.
Using the API ? startRecorder()
Generate an iOS or Android App ? Android
Here is my question :
I use this code:
await _myRecorder.startRecorder( toFile: path, codec: Codec.pcm16, sampleRate: 16000, numChannels: 1);
and Exception
flutter_sound is not support PCM ?