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

sampleRate: 22000 not recording on iOS #49

Open
2math opened this issue Sep 23, 2020 · 0 comments
Open

sampleRate: 22000 not recording on iOS #49

2math opened this issue Sep 23, 2020 · 0 comments

Comments

@2math
Copy link

2math commented Sep 23, 2020

First thanks for this great package!

It is super weird and took me a lot of time until figure it out, that the problem is the sample rate.
Bellow code is OK on android, while on iOS is changing states but not recording audio(duration remains 0)
_recorder = FlutterAudioRecorder(filePath, audioFormat: AudioFormat.AAC, sampleRate: 22000);

This simple change made the package to work on both platforms. I guess iOS does not support all sample rates?
_recorder = FlutterAudioRecorder(customPath, audioFormat: AudioFormat.AAC);

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

1 participant