Questions tagged [headphones]

146 questions
0
votes
0 answers

How can i read my headphone output with Python?

Hello i was wondering how i can read my headphone monitor output with python. I tried to do it with python3 and pyaudio but i just got it to work with my microphone. Here is my code i tried to do for my Headphones, but that didn't work.…
0
votes
2 answers

playing audio with media player through phone speaker during call

how to play audio through the phone speaker using MediaPlayer while the user is on a phone call through BT headphones. I tried this: ... AudioDeviceInfo audioDeviceInfo = getPhoneSpeaker(context); if (audioDeviceInfo != null) { …
0
votes
3 answers

Detect plugged & unplugged event on headphone jack in Xamarin.Android

I'm trying to find a way to detect the plugged/unplugged event on headphone Jack in Xamarin.Android. Is there a way to do it in this? and if it is, how can I implement that functionality?
0
votes
0 answers

How to connect and disconnect bluetooth headphones with python?

I tried to search good way to automatically connect bluetooth headphones and/or disconnect them with python 3 but couldn't find any good solutions. Is there any good libraries or tutorials how I could accomplish this task?
0
votes
1 answer

Raspberry's sound Bug with a bluetooth headphone

everybody! I'm trying to connect my raspberry pi 3 bluetooth to my headset. However the sound bug. It's kind of intermittently cutting off quite randomly, which makes it sound terrible. I'm using the Raspberry 3's built-in bluetooth with Pulseaudio…
0
votes
1 answer

How to detect a WIRELESS (not Bluetooth) connection?

I don't know much about that topic so I'm asking for your understanding... This is not question about Bluetooth connection! I have WIRELESS headphones and I want to detect the connection between the 2.4GHz receiver and the headphones (Steelseries…
Qiasm
  • 356
  • 6
  • 15
0
votes
1 answer

Check if headphone port is available in iPhone Swift 4

I need to check if my iPhone has a headphone port or not. I checked if the headphone is connected using the following code !AVAudioSession.sharedInstance().currentRoute.outputs.filter { $0.portType == AVAudioSession.Port.headphones }.isEmpty But…
Chanchal Chauhan
  • 1,530
  • 13
  • 25
0
votes
0 answers

Detect headphone buttons react native

I am trying to detect headphone button clicks in react native. I want to add listener on play / pause button click from headphone, I have searched many package but can't find good solutions. Thank you. I am using "react": "16.6.3", "react-native":…
GolKin
  • 1
0
votes
1 answer

iOS custom action for volume up/down from Headphones

Requirement: When a user plugs in headphone with iPhone through wire/wireless having volume up/down keys available in same, user can able to perform custom actions through that buttons. (Do not need to change system volumes from headphones) Current…
Bhargav Soni
  • 1,067
  • 1
  • 9
  • 22
0
votes
0 answers

How to determine when a headphone or bluetooth headset is plugged in or connected to a Mac with Swift?

I'm trying to build a tiny macOS App with Swift. Now I have some trouble on how to determine when a headphone or bluetooth headset is plugged in or connected to a Mac. Any suggestions would be appreciated. Update: I found an answer (posted as…
Vincent
  • 486
  • 6
  • 20
0
votes
0 answers

Android Visualizer loses headphones

My Android apps are audio players with built in music visualizations. They can use Android Visualizer class to get sound data. But unfortunately it does not contain any music if headhones are connected. It takes sound only from microhone but not…
Gourmand
  • 31
  • 5
0
votes
0 answers

Java Android - Force all audio to headphones

I've seen several examples of forcing audio to speakers while headphones are plugged in but what I'm trying to do is somewhat unique in that, I want to force audio to headphones when another media application would otherwise be sending that audio to…
D. Cain
  • 3
  • 1
  • 5
0
votes
0 answers

How handle headphone button clicks in Java (computer)? No smarthphones related

There's a way to handle headphones button clicks in computer (not smartphone) with Java? The usage is very similar to Android, which by pressing the button some event is fired. There's not much info about this, then I thought a way to perform this…
Lucas Sousa
  • 192
  • 3
  • 14
0
votes
0 answers

How to mute ONE channel

I have method to generate tone, but I want play it only through ONE channel, left or right. When I use tone.setStereoVolume(0,1) or track.setStereoVolume(0,1); it not work fine, because I hear sound through two channels. Method disableSound disable…
Anna J
  • 9
0
votes
2 answers

Droid Incredible Headphones Detection

I'm developing an Android application for the Droid Incredible. When I plug in my headphones, an icon appears on the status bar, so I presume the phone must know headphones are present. My code produces beeps in response to various user inputs, but…
Rich
  • 4,157
  • 5
  • 33
  • 45