Questions tagged [speakerphone]

31 questions
15
votes
2 answers

Android set speakerphone on programmatically

I am trying to set speakerphone on in a call programmatically using audiomanager.setSpeakerphoneOn(true) in a service but it seems it is not working and I don't know why. Should I do something else? Thanks
Matroska
  • 6,885
  • 14
  • 63
  • 99
11
votes
2 answers

Using AudioManager interferes with call audio

I'm using the following code in a BroadcastReceiver (phone state listener) to enable speakerphone: final Handler mHandler = new Handler(); mHandler.postDelayed(new Runnable() { @Override public void run() { AudioManager audioManager…
JstnPwll
  • 8,585
  • 2
  • 33
  • 56
9
votes
1 answer

Switching between earpiece and speakerphone on button press

I am trying to play audio from both the speakerphone and earpiece by having a button toggle between the two. The problem is that I am trying to default the audio to play from the earpiece, but nothing comes out. Then when I press the button to…
BC2
  • 892
  • 1
  • 7
  • 23
6
votes
2 answers

Turn on speakerphone whenever an outgoing call is made

My requirement is to turn on speakerphone whenever an outgoing call is initiated. I tried the following code, but it is not working. In fact, speakerphone turns on when in the middle of a call, a second call comes ! package…
AllSolutions
  • 1,176
  • 5
  • 19
  • 40
6
votes
1 answer

Change Android Audio Record Default input Source

I am currently writing an app that calls for the recording and real time processing of audio data. For this, I am using the AudioRecord class. This works all well and good, except the default setting for recording audio on my primary testing…
lbrendanl
  • 2,626
  • 4
  • 33
  • 54
4
votes
1 answer

Trouble with loud speaker off on Galaxy S

Has anyone else experienced this on the Samsung Galaxy S? When I use the folowing to turn the Loudspeaker on it works fine: audioManager.setSpeakerphoneOn(true); But when I try the opposite to turn it…
Donal Rafferty
  • 19,707
  • 39
  • 114
  • 191
4
votes
1 answer

Android recording and playing +speakerphone as an option

I am programming a sip application for Android. During a call I must record the microphone input and play the incoming audio. There must be an optional using of speakerphone. It must be Android 1.5+ (1.5, 1.6, 2.0, 2.1, 2.2, future versions)…
Jan Němec
  • 111
  • 1
  • 4
4
votes
1 answer

iOS pjsip 2.2 loud speaker switch fails

During the call I try to switch voice from internal speaker to Loud speaker on iOS device using pjsip 2.2 library. It returns TRUE as success, but physically it doesn't change sound destination. I use the next code - (BOOL)setLoud:(BOOL)loud { if…
4
votes
1 answer

android -how to listen to SpeakerPhone change

I'd like to be able to listen to on/off events of the android native speakerphone button. Realizing i could spawn a child thread and keep checking for AudioManager.isSpeakerphoneOn(); thats just going to kill battery life etc etc. Is there a…
j2emanue
  • 60,549
  • 65
  • 286
  • 456
3
votes
0 answers

Set speaker on during call, not working in Android 10 and above version

Permissions (Optional) Below is the code which is working well in the below Android 10 devices. boolean…
RaRa
  • 2,024
  • 1
  • 18
  • 29
3
votes
0 answers

audiomanager.setspeakerphoneon(true) not working with android pie

I am making an application where I have to give a facility to turn speaker phone on/off during ongoing call. I used AudioManager and its working find till android Oreo devices, but when it comes to android Pie does not work and does not even through…
2
votes
0 answers

Connecting an external speakerphone with Android phone using USB

Problem: If I make a Google Hangout call from my Android phone and want to use an external speakerphone Jabra speak 410. The only way I could make Hangouts use this device was to connect it with Bluetooth. I want to use a USB cable connection and…
SabbirH
  • 21
  • 1
2
votes
2 answers

Maximum frequency of any mobile phone speaker

I want to know , what is the maximum frequency of mobile speaker look at this image : I want to create and android application to generate sounds with particular frequency , but before that I want to know what frequencies can be generated by…
2
votes
0 answers

WP8.0 detect if device is held to the ear

I want to detect whether the device is held to the user's ear or not because I want to change the audio path from the speakers to the phone's speakers (just like hearing an audio on whatsapp). I searched about proximity and sensors but didn't find…
NadaNK
  • 782
  • 2
  • 10
  • 26
2
votes
2 answers

How to mute audio in headset but let it play on speaker programmatically?

I am searching a work-around for my problem specified in this question: How to disable the wired headset programmatically in Java As mentioned there, I am getting audio in both my speakers and headphones. Can someone please tell me how to mute the…
SoulRayder
  • 5,072
  • 6
  • 47
  • 93
1
2 3