Closed ericadu closed 2 years ago
I'm curious if it has to do with the fact that the protocol is AVAudioSessionPort.bluetoothHfp
?
Also unsure if actually an https://github.com/ryanheise/audio_session/issues issue.
Update: I tried swapping flutter_sound
for mic_stream
in my app, and can confirm that it works with mic_stream
. Current hypothesis is that it is a flutter_sound
issue.
Update on this issue (which I'm working with @ericadu on):
Allen, I am impressed by your bug fix. I am going to merge your Pull Request to the master branch. Thank you for your time. This is really terrific job.
Thank you so much @fallenpanda1 and @Larpoux! Very much appreciate it 🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼
@ericadu , @fallenpanda1
Allen : your Pull Request is now integrated inside Flutter Sound release 9.2.12 I am impressed that you was able to debug FlutterSoundCore without any help from me. If you had told me before, I would had help you to setup a development environment. Well done, Allen
Erica : can you try Flutter Sound release 9.2.12 and tell us if your issue is fixed ?
If you had told me before, I would had help you to setup a development environment.
Ooh nice, thanks for the offer! I'm primarily an iOS engineer by trade, so it wasn't too hard for me to get the code up and running, haha. I'm more clueless around Flutter code though.
Flutter Sound Version :
FULL or LITE flavor ? Full
Important: Result of the command :
flutter pub deps | grep flutter_sound
|-- flutter_sound 9.2.9 | |-- flutter_sound_platform_interface 9.2.9 | |-- flutter_sound_web 9.2.9 | | |-- flutter_sound_platform_interface...Severity
Crash ?
Result is not what expected ? X
Cannot build my App ?
Minor issue ?
Platforms you faced the error
iOS ? XX
Android ?
Flutter Web ?
Emulator ?
Real device ?
Describe the bug A clear and concise description of what the bug is.
Recording to stream does not capture any audio when using bluetooth audio devices that are not Airpod Pros. Tested using real iOS devices 15.4.x.
Tested using the following bluetooth headphones:
To Reproduce Steps to reproduce the behavior:
Observation: No
FoodData
is being captured.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
Some potentially helpful code snippets.
I created a helper service to manage audio sessions and to print out the current routes.
initSession
gets called in myinitState
component of my recorder widgetRecorder Widget
LOGS OUTPUT
and then my backend service throws an error because I'm sending it empty bytes.