0

I was tinkering around creating a Voice Recorder in android. I was able to record audio and play it back. I am even able to record audio when a standard bluetooth headset(Bluetooth 2.X) is connected.

However, when i connect a BLE headset(Bluetooth 4.X) to my phone i am not able to record any audio, and i am not able to figure out why?

Any idea what am i missing?

Here's my manifest file

<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
Preetham
  • 618
  • 7
  • 10
  • What is your detailed recording scenario for Bluetooth headsets? BLE here is mostly about hardware. Generally it uses the same profiles (A2DP and HFP/HSP) to stream audio. – hank15 Oct 21 '18 at 20:33
  • Turns out the hardware which i was using had problems. – Preetham Dec 08 '18 at 14:49

1 Answers1

0

Bluetooth 4.X adds LE transport alongside "Classic" Bluetooth transport (called BR/EDR). A headset is surely not LE-only, because today's audio profiles use BR/EDR as transport, so when it comes to a Bluetooth headset there is little difference between 2.1 and 4.X.

So if the app worked with a 2.1 headset, it should work with any headset. Your problem is somewhere else -- either the new 4.X headset is broken or is not properly configured.

Bogdan Alexandru
  • 5,394
  • 6
  • 34
  • 54