llfbandit / record

Audio recorder from microphone to a given file path. No external dependencies, MediaRecorder is used for Android an AVAudioRecorder for iOS.
https://pub.dev/packages/record
245 stars 203 forks source link

echoCancel doesn't work on Samsung devices #418

Closed gaochang1993 closed 1 month ago

gaochang1993 commented 1 month ago

Package version 5.1.2

Environment

Describe the bug

On samsung device with echoCancel enabled, the currently playing audio is still packed up in the recording stream. It does not work on Samsung phones, but works on other brands of Android phones and ios devices. Here is the RecordConfig: _audioRecorder.startStream(const RecordConfig( sampleRate: 24000, numChannels: 1, bitRate: 24000, echoCancel: true, noiseSuppress: true, encoder: AudioEncoder.pcm16bits, )

And I found the same issue373,fixed in record_android version 1.2.6. But the record_android version that record 5.1.2 depends on is 1.2.3. So I add dependency_overrides: record_android: 1.2.6 to my pubsec.yaml,but it seems not work. What can I do to fix it.

llfbandit commented 1 month ago

Effects may or may not be available on the device as I do not implement these algorithms myself.

You can already use record_android: 1.2.6. Just use flutter pub upgrade to upgrade your transitive dependencies.

gaochang1993 commented 1 month ago

Effects may or may not be available on the device as I do not implement these algorithms myself.

You can already use record_android: 1.2.6. Just use flutter pub upgrade to upgrade your transitive dependencies.

I have upgraded, but this bug always ocurred.