Seshu Vinay
Seshu Vinay

Reputation: 13588

Call recording with earphones

I created Voice call recording app which works great with Phone's microphone and earpiece. But it's not able to record audio when earphones are inserted. I tried changing AudioSource to AudioSource.DEFAULT thinking that it automatically takes default audio source. It records nothing.

Upvotes: 1

Views: 6420

Answers (1)

Michael
Michael

Reputation: 58507

You should be using the VOICE_CALL audio source if you want to record both the uplink and downlink audio. It should work regardless of whether you have a headset or headphones attached.

Keep in mind, though, that voice call recording is a platform-specific feature, and not something Google implements. So there are phones that simply do not support voice call recording, because the platform vendor or OEM didn't implement it, for whatever reason (lack of time, most likely).

Upvotes: 2

Related Questions