Open amitrotner opened 3 years ago
@amitrotner , Thank you for your Problem Report. It is clear and correctly filled. I like such Problem Reports.
Do you record to a File or to a Stream ?
@amitrotner , Thank you for your Problem Report. It is clear and correctly filled. I like such Problem Reports.
Do you record to a File or to a Stream ?
Thanks. I record to a Stream
OK. I think that there is some bugs when recording Streams. Actually we support only PCM - INTEGER16, but the default PCM format on iOS is FLOAT32.
I am almost sure that the problem is because the iOS device switched to FLOAT32.
I am currently busy working on Tau Sound 9.0. This new branch will support many different PCM formats :
So your Problem Report is really interesting for me, to help me debug this stuff.
No, this is an instance of the phone call having control of the mic, and flutter_sound is swallowing exceptions on FlutterSoundPlayer.openAudioSession amongst others.
In our app we use FlutterSound to record, and also SpeechToText simultaneously. If we are in a Zoom call, and then start our app that uses these plugins, this message appears in the log:
[plugin] Error starting listen: The operation couldn’t be completed. (OSStatus error 561017449.)
ios error 561017449 is defined in AVAudioSession.h: AVAudioSessionErrorInsufficientPriority = '!pri', / 0x21707269, 561017449 / and is described as "The app was not allowed to set the audio category because another app (Phone, etc.) is controlling it."
Yes, @kiwicmc , Your shared info with your App are interesting.
I can understand that the microphone cannot belong to two App at the same time. But having a phone call during the run of Flutter Sound is something that can happen very often, and the App must be able to handle this thing. (The App is the only people knowing what to do in this case).
Probably, Flutter Sound should trigger an explicit (and well documented) exception, instead of falling into un-understandable traps. If someone can do a Pull Request for that, it would be great : I actually have much work on τ Sound 9.0, and I have no time to spend on Flutter Sound 8.4
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.
Flutter Sound Version :
FULL
Important: Result of the command :
flutter pub deps | grep flutter_sound
|-- flutter_sound 8.3.9 | |-- flutter_sound_platform_interface 8.3.9 | |-- flutter_sound_web 8.3.9 | | |-- flutter_sound_platform_interface...Severity
Platforms you faced the error
Describe the bug App crashes when trying to start recording during a phone call.
To Reproduce Steps to reproduce the behavior:
App crashes
Logs!!!!
(This is very important. Most of the time we cannot do anything if we do not have information on your bug). To activate the logs, you must instantiate your modules with the Log Level set to
Level.debug
:See this