Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you tell whether headphones/headset are plugged in WP8

Is it possible to tell whether the headphones are plugged in on a windows phone 8 device? I want to use the Text to Speech API but I don't want to read messages over the speaker

like image 288
David Hayes Avatar asked Feb 12 '13 02:02

David Hayes


People also ask

How does a computer know when headphones are plugged in?

The audio ports detect that something has been plugged in by monitoring for a change in resistance across the port. When nothing is plugged in the resistance is infinite, but when a coil is plugged in (speaker or mic) there is now a measurable resistance, and the computer pops up and asks you what it is you plugged in.

Why does it say headphones are plugged in when they aren t?

Clean the headphone jack When you connect the headphones, the plug pushes the lint further to the bottom of the jack. If the lint is conductive, it may be messing with the electronic circuits inside the jack, causing the phone to register it as a pair of headphones plugged in.

How do you tell if your headphones have a mic in them?

There's usually an indication to identify an internal microphone on headphones. In most instances, it's a small hole (this may or may not have a microphone symbol next to it) located on the bottom of the ear cups.

How do you check if headphones are plugged in Windows?

Check the audio jack. On the back of your laptop or desktop, look for the audio output port, often labeled with a headphone or speaker icon, and make sure the headphones are plugged in.


1 Answers

Actually, yes you can on WP8. It's not an obvious API, but these guys figured out how to do it as long as the phone is running anything above GDR1.

http://developer.nokia.com/community/wiki/How_to_detect_the_audio_path_(headset_connection)_on_Windows_Phone

like image 106
Rob.Kachmar Avatar answered Oct 28 '22 17:10

Rob.Kachmar