Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

echoCancel doesn't work on Samsung devices #418

Closed
gaochang1993 opened this issue Oct 24, 2024 · 4 comments
Closed

echoCancel doesn't work on Samsung devices #418

gaochang1993 opened this issue Oct 24, 2024 · 4 comments

Comments

@gaochang1993
Copy link

Package version
5.1.2

Environment

  • OS: Android
  • devices: samsung S9010,

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
Copy link
Owner

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
Copy link
Author

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.

@iak-a-dev
Copy link

@gaochang1993 do you found any solution ?

@gaochang1993
Copy link
Author

@gaochang1993 do you found any solution ?

No, I had tried to set AudioManager.mode=MODE_COMMUNICATION, but it didn't work. It seems we need to implement the echo cancellation algorithm ourselves or seek official help from Samsung.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants