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
Asked
Active
Viewed 1,279 times
9
-
i dont see why someone would downvote this question. it's a very valid one. – GR7 Feb 12 '13 at 07:24
-
I wondered why it got downvoted too, sure it's a short question but it's to the point and I couldn't/can't find a definitive answer – David Hayes Feb 12 '13 at 14:30
-
I'm about to start doing WP8 Development David..so while I'm not able to answer the question, I hope someone does soon. Good luck. – GR7 Feb 12 '13 at 20:21
-
I was hoping to make a very similar app, did you get anywhere? I found you can't do anything towards this app, you can't run the app in the background and you're not allowed to intercept SMSes, so it seems like it's a no go. – Jamie Kitson Nov 01 '13 at 00:15
-
Additionally my Lumia 1020 has an FM radio, the FM radio app uses the headphones as an areal and gives a warning when they are unplugged, so I guess it must be able to tell when they are unplugged. – Jamie Kitson Nov 01 '13 at 10:21
-
I've created a suggestion for this: http://windowsphone.uservoice.com/forums/101801-feature-suggestions/suggestions/4861212-read-speak-sms-when-headphones-plugged-in- – Jamie Kitson Nov 01 '13 at 10:35
-
My Lumia 1020 now gives me the option to read text messages when my headphones are plugged in under Settings -> Speech. – Jamie Kitson Mar 11 '14 at 15:18
2 Answers
3
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.

Rob.Kachmar
- 2,129
- 1
- 18
- 23
-
Awesome, will read the article and try it out and then I'll change the accepted answer. Thanks! – David Hayes Feb 05 '14 at 00:29
-
Can we do this in Background task (ie, Windows Runtime component). I have tried but its not working. – Isham Mohamed Aug 10 '14 at 08:18
0
No you can't.
See these google results:

Alastair Pitts
- 19,423
- 9
- 68
- 97
-
Nothing massively conclusive but it's all pointing towards a no. It's very annoying since clearly the SMS/speech function uses this somehow – David Hayes Feb 12 '13 at 02:55
-
if it isn't possible, then how does the Beats audio feature gets enabled on my HTC 8x when headphones are plugged in? there's got to be a way – GR7 Feb 12 '13 at 06:55
-
-
Also, as I say in my comment above, the FM radio on my Lumia 1020 knows whether the headphones are plugged in. – Jamie Kitson Feb 06 '14 at 10:19