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

Recorded files are too low volume #398

Closed
echogit opened this issue Sep 13, 2024 · 5 comments
Closed

Recorded files are too low volume #398

echogit opened this issue Sep 13, 2024 · 5 comments

Comments

@echogit
Copy link

echogit commented Sep 13, 2024

I'm using the latest version version of the package.

On iOS it worked fine, but on Android, the volume of the recorded file is too low. I tried different encodings (aar, wav, flac), but that didn't helped as well.

I tried putting on the maximum volume for reproduction and still it's very low.

Is there any way to increase the volume used for recording?

Environment

  • OS: [e.g. iOS/Windows/...]
  • Browser [e.g. chrome, safari] if issue is on web platform.

Describe the bug

A clear and concise description of what the bug is.

Add your record configuration RecordConfig(...)

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Additional context

Add any other context about the problem here.

@llfbandit
Copy link
Owner

Unfortunately no, there's no way to play with hardware microphone sensivity.
You can try with autoGain flag, it may help. This is very device/vendor dependent.

Also you can try with the recorder app shipped with your phone (if available), it should output the same as this package.

@echogit
Copy link
Author

echogit commented Sep 13, 2024

Unfortunately no, there's no way to play with hardware microphone sensivity. You can try with autoGain flag, it may help. This is very device/vendor dependent.

Also you can try with the recorder app shipped with your phone (if available), it should output the same as this package.

That's the thing, I initially used the flutter_sound package to record sound, but it didn't worked on iOS, as it was creating corrupted empty files. Then I changed to Record package, and worked just fine on iOS. When I went back to Android to confirm it was also working fine, I found out that the sound recorded is very very low. I tried the auto gain parameter, which didn't make any difference.

Would you have any idea what I could do?

@echogit
Copy link
Author

echogit commented Sep 15, 2024

I found the problem, it fixed when I used the useLegacy parameter to true:

RecordConfig(autoGain: true, encoder: encoder, numChannels: 1, androidConfig: AndroidRecordConfig(useLegacy: false, muteAudio: false), );

@mityax
Copy link

mityax commented Sep 18, 2024

I also have this issue and I think it would be great if there was a way to fix this without using a legacy feature

@rulefahd
Copy link

rulefahd commented Nov 1, 2024

any fix !?!? many devices have very low volume on recording , including s24 !

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

4 participants