I found the problem.
1: Because the recording operation needs to press the Bluetooth button and hold it all the time to start recording. Let go and stop recording.
2: When you press and hold the Bluetooth device button. The mobile phone will always receive the data sent by the Bluetooth device. The recorded audio at this time is noise (the app is always running in the background).
3: But it is normal that there is no noise when the app is running in the foreground and repeats the recording operation.
4: Press and lift the Bluetooth device button to start recording. Wait for the recording. Press and lift again. Stop recording. At this time, the recording is normal and there is no noise.
5: So how to do it without changing the audio session mode when long pressing (long press will always receive the data sent by Bluetooth)
6: How to maintain the audio mode at the beginning
Topic:
Media Technologies
SubTopic:
Audio
Tags: