Questions tagged [speaker]
233 questions
3
votes
0 answers
Determine the current output to the speaker C++ Beginner
Recently, I've began learning C++ in college and was asked to make a looping sequence of "*" with the sequence going like this:
*
***
*****
*******
*********
*********
*******
*****
***
*
[continues indefinitely until it goes x lines, where x is…

Tobias Noll
- 31
- 2
3
votes
1 answer
Speakers ON & Off issue while Handling Calls programmatically in android
I am working on an application that is handling incoming and outgoing calls. I am able to handle Incoming and outgoing calls Successfully using Telephony manager.
The issue what i am facing here is Turn Speaker Phone on and off is not working…

user3350497
- 31
- 3
3
votes
1 answer
Turn ON speaker in incoming call Android
I would like to turn on the speaker and set it to maximum volume.
In my PhoneStateListener I'm intercepting the incoming call, and it works fine for any incoming/outgoing call.
The thing is that I want to turn on this feature only for two specific…

OlejkaKL
- 521
- 1
- 9
- 23
3
votes
5 answers
android sound to speaker
On my dummy android app I try to replicate the functionality of an audio player. The files I have to deal with, are some ogg files which are not too long: 2-3 seconds.
The problem is that the volume of the files is too low. I'll like to augment the…

dole doug
- 34,070
- 20
- 68
- 87
3
votes
2 answers
C# how to record general audio from output device ( speaker ) with NAudio API
I'm trying to record the Speaker Output to detect volume and BPM from any playing music with C# and NAudio API.
The problem is, i don't know how to do that :/
i have a sample code from…

Ace
- 1,437
- 6
- 28
- 46
2
votes
0 answers
How to track the person talking webrtc in android?
My problem is this.
I want to keep track of the time other people are talking on webrtc.
For example:
PeerA, PeerB and PeerC is in one room.
When peerA starts talking, I want to make any changes to the UI in PeerB and PeerC (for example, change…

cafer yıldız
- 21
- 1
- 4
2
votes
0 answers
how to enable ear speaker instead of loud speaker in flutter
I had done with calling peer to peer in flutter but there is a problem how can I enable ear speaker instead of the loudspeaker in a flutter. Please help me to do this,
while establishing calling from one device to another device it only enables the…

sekhar javvadi
- 131
- 1
- 4
2
votes
0 answers
How to switch audio output programmatically in android 10 or up?
I have an Android app in which I want to set the media output to a specific device, in my case the phone's internal speakers, while being connected to a bluetooth device. For clarity, I don't want only my app to play through a specific output. I…

P. Hermens
- 25
- 7
2
votes
1 answer
How to control 5 or more speakers from Matlab?
I am looking for advice on how to control 5 or more speakers with Matlab.
In an earlier thread I received advice on the hardware needed to control the speakers.…

Adam SO
- 9,821
- 8
- 28
- 27
2
votes
0 answers
How to switch microphone between Bluetooth earpiece and mobile phone?
I try to write a Speech2speech translation app and the translation service is from Microsoft speech service api.
There are two function I want:
One of them is that earpiece receives my voice(English), and then, the speaker of mobile phone plays the…

Azreal
- 99
- 8
2
votes
1 answer
How to detect if the audio is currently playing on an Android phone speaker?
I need to have some custom behavior in my app when the audio playback is done on the device speaker (not a wired headphone and not a BlueTooth receiver).
To do so I'm doing the following
AudioManager audioManager = (AudioManager)…

user1026605
- 1,633
- 4
- 22
- 58
2
votes
0 answers
Audio not switching to speaker when airpods connected
I have airpods connected to my device and I am trying to switch the audio to speaker. I am using the code below which works when nothing is attached, other bluetooth devices are connected and when headphones are plugged in but it doesn't when there…

user1079052
- 3,803
- 4
- 30
- 55
2
votes
1 answer
OpenSUSE 15.0 LEAP pulseaudio unable to detect bluetooth speaker
I would like to stream my music through my Bluetooth speaker but PulseAudio can't see the speaker. When I open the sound settings (pavucontrol) I can't change the output device to my speaker since it's not displayed.
What I already checked
The…

Dylan Van Assche
- 510
- 4
- 15
2
votes
0 answers
Speaker labels - how to?
I have created an application which is able to get a request of what the speaker says using
https://stream.watsonplatform.net/speech-to-text/api/v1/
however when I apply…

sonic18
- 61
- 1
- 4
2
votes
1 answer
How to play input data from microphone directly
I want to play many input data from a microphone without buffering. I tried, but there is buffering. Here is my code.
import pyaudio
import wave
import urllib.request
import struct
import numpy as np
import sounddevice as sd
import matplotlib.pyplot…

Jae Yun Yoo
- 21
- 2