speaker

How to get Speaker Volume Level? [duplicate]

一曲冷凌霜 提交于 2020-01-07 17:49:51
问题 This question already has an answer here : Controlling Volume Mixer (1 answer) Closed last year . How can I get the speaker volume in C#? speaker volume image And show it in my app? App image 回答1: Using NAudio, you could do the following: using NAudio.CoreAudioApi; ..... // download NAudio.dll from https://github.com/naudio/NAudio/releases // and add it as Reference to the project var devEnum = new MMDeviceEnumerator(); var defaultDevice = devEnum.GetDefaultAudioEndpoint(DataFlow.Render, Role

Turn ON speaker in incoming call Android

主宰稳场 提交于 2020-01-04 03:01:24
问题 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 incoming numbers. This is my code: case TelephonyManager.CALL_STATE_OFFHOOK: if (incomingNumber.equals( strRegisterNumber1) || incomingNumber.equals( strRegisterNumber2)) { AudioManager audioManager = (AudioManager) contextMember.getSystemService

iOS: Is it possible to send audio out both headphones and speakers at the same time?

我怕爱的太早我们不能终老 提交于 2020-01-01 09:30:31
问题 We're looking to send some serial data out from the headphone jack, but would like to still be able to play audio from the speakers. Is it possible to send output to both? If so, is it possible to send different audio to each? 回答1: Not as far as I'm aware. You can get programatic notification of when the routing has changed (i.e. when someone connects a headphone cable), but you are unable to specify which device(s) to use for output. 来源: https://stackoverflow.com/questions/10215923/ios-is-it

“Speaker Recognition and Segmentation” [closed]

人盡茶涼 提交于 2019-12-25 07:37:30
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Looking for a code that would process media file to "Who said what and when" in other words a "Speaker by speaker Segmentation" and what timing for each. Failing answers: doing any manual works to process the media file..thanks! 回答1: You can use speaker diarization from Kaldi, it is not easy to setup but results

Play sound in both speaker and headset wpf

大兔子大兔子 提交于 2019-12-25 02:46:25
问题 I have an wpf application and i am using the soundPlayer class to play sound (for eg ringtone). Currently the tone plays either on speakers or on the headset (if its plugged in). I would like the application to play the tone on speaker even when the headsets are plugged in. I know there are ways to do this in android, but couldn't find any in wpf. Any help is appreciated. Thanks ! Sharing sample code : public void detectDevices() { int waveOutDevices = WaveOut.DeviceCount; switch

Has anyone tried to play sounds through the speakers and headphones at the same time? Android + iOS

柔情痞子 提交于 2019-12-25 02:28:18
问题 I currently have an app that generates sounds on the fly, like pure tones and white noise, and I can hear that on the headphones. Is it possible to send the same signal to the internal speakers and the headphones at the same time? I would like to do this on iOS 7 and KitKat. Probably, Android L and iOS 8 in the future... On iOS I have seen that a new feature was introduced on iOS 6, multiroute, which let select the audio route. The thing is that when I connect the headphones I can not choose

Change Android Audio Record Default input Source

一笑奈何 提交于 2019-12-23 10:19:55
问题 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 device, a galaxy nexus, is to record from the back speaker. I am assuming most phones default record source will be the back, or bottom microphones, because when you are using the phone to call, your mouth is near the bottom. However, my app requires that

Change Android Audio Record Default input Source

旧巷老猫 提交于 2019-12-23 10:18:26
问题 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 device, a galaxy nexus, is to record from the back speaker. I am assuming most phones default record source will be the back, or bottom microphones, because when you are using the phone to call, your mouth is near the bottom. However, my app requires that

Play audio trough phone speaker of an android device

我只是一个虾纸丫 提交于 2019-12-22 07:00:12
问题 Is it possible to play audio trough the phone speaker of an android device? The smaller speaker inside a phone that produces a low volume sound which can only be heard when listing closely with your ear against the phone. Hopefully my description is clear enough to understand my question. If it is possible, a example for how to accomplish this would be really helpful. EDIT Currently i'm using the following code to initialize my MediaPlayer. mediaPlayer = new MediaPlayer(); mediaPlayer

Mic input to the speaker output on an iOS device?

一世执手 提交于 2019-12-20 02:11:40
问题 How can I redirect the mic input to the speaker output on an iOS device? I know it feedbacks overtime, but how can I do it in code? 回答1: See aurioTouch sample from Apple. That does exactly what you want. I.e. it plays the input directly out as it comes in. 来源: https://stackoverflow.com/questions/8076850/mic-input-to-the-speaker-output-on-an-ios-device