microphone

How to detect input data through the audio jack?

混江龙づ霸主 提交于 2019-12-02 16:52:05
I know that some devices headphone ports (maybe all of them? any reference here would be good) have 3 channels, for stereo sound and microphone. So I was wondering if it's possible to detect something like this pedal on these devices. If it's possible, using the audio recorder would be enough? I'm studying possibilities for an app here, and this sounds promising if possible. Thanks EDIT I was searching more about it and I was wondering if the pedal would have the same effect as those headsets with buttons. It's deadly easy to override their effects, I created a simple app that does it and now

Java Record Mic to Byte Array and Play sound

試著忘記壹切 提交于 2019-12-02 14:58:06
I want to make a live voice chatting program in Java, but I know nothing about recording/playing sound in Java, so with the help of Google, I think I have been able to record from my mic to a byte array with the following: AudioFormat format = new AudioFormat(8000.0f, 16, 1, true, true); TargetDataLine microphone; try{ microphone = AudioSystem.getTargetDataLine(format); DataLine.Info info = new DataLine.Info(TargetDataLine.class, format); microphone = (TargetDataLine)AudioSystem.getLine(info); microphone.open(format); ByteArrayOutputStream out = new ByteArrayOutputStream(); int numBytesRead;

Android audio stream and microphone

随声附和 提交于 2019-12-02 09:11:20
Im fairly new to Android development but from what I read I am pretty sure there is no direct API access to the in-call audio stream. I need to make something very close to an answering machine so I was wondering if there is any API support to pass an audiostream to the microhpone internally and use that as a workaround for not having access to the call stream. IE someone calls, we get the answer, mute the microphone so that he cant hear the environment and pass an alternative audiostream(some kind of recording) to the microphone while it is muted...That was the only workaround I can think of

Access webcam and microphone input in VB.net

女生的网名这么多〃 提交于 2019-12-02 07:55:32
How can you access the webcam and microphone in VB.net, assuming the user even has one? I fail to see a My.Computer.Webcam or My.Computer.Microphone, both of which would probably have been a nice addition. Thanks for the help! If there is no easy method for doing this, what is the name of the driver that handles this and what methods should I use to make this work? Cyclone, you can use DirectShow .Net Library to access the webcam and microphone here a example Webcam using DirectShow.NET (Vb .Net) bye. 来源: https://stackoverflow.com/questions/1451627/access-webcam-and-microphone-input-in-vb-net

How to detect that system connected with microphone using JavaScript

我怕爱的太早我们不能终老 提交于 2019-12-02 07:17:31
问题 I'm using getUserMedia() for audio recording and it works correctly but have an issue with it. I want to display a message before starting recording that any microphone is connected with system or not. For this I have used following code and run this into chrome but it was not working correctly. if(navigator.getUserMedia || navigator.webkitGetUserMedia) { alert("Microphone is connected with your system"); } else { alert("Microphone is not connected with your system"); } when microphone is not

How to get the fundamental frequency from FFT?

一世执手 提交于 2019-12-02 06:24:09
I am developing a flash guitar, and the only apparent method to discover the frequency of the mic's data looks to be using FFT. Nevertheless, after something like 30 hours of research I could not discover the best way to do that. Should I use Harmonic Product Spectrum (HPS), Cepstrum or Maximum Likelihood? The tuner will have to show frequencys from 25 to 3000Hz. Also, if someone knows about some open source code ready to find the fundamental frequency, please tell me. I can translate it to ActionScript. Thanks! shams The simplest technique I've had success with is to use FFT and then perform

How to see if there is one microphone active using python?

浪尽此生 提交于 2019-12-02 04:36:44
I want to see if there is a microphone active using Python. How can I do it? Thanks in advance! Microphones are analog devices, most api's probably couldn't even tell you if there is a microphone plugged in, your computer just reads data from one of your soundcards input channels. What you probably want to know is if the input channels are turned on or off. Determining that is highly platform specific. This is what I wanted: import ctypes from ctypes import * winmm= windll.winmm print 'waveInGetNumDevs=',winmm.waveInGetNumDevs() 来源: https://stackoverflow.com/questions/2797572/how-to-see-if

How to detect that system connected with microphone using JavaScript

柔情痞子 提交于 2019-12-02 02:56:17
I'm using getUserMedia() for audio recording and it works correctly but have an issue with it. I want to display a message before starting recording that any microphone is connected with system or not. For this I have used following code and run this into chrome but it was not working correctly. if(navigator.getUserMedia || navigator.webkitGetUserMedia) { alert("Microphone is connected with your system"); } else { alert("Microphone is not connected with your system"); } when microphone is not connected then also above code giving message "Microphone is connected with your system". so please

Microphone level in Java

主宰稳场 提交于 2019-12-01 19:39:22
I'm trying to access the level of the mic through Java. I don't need to record anything, I just want to know a relative scale of sound level. Is this possible in real-time? If it's impossible, maybe this could work: Start recording when the level is over a certain value, stop when the level drops under a certain level for a certain time Recording bits of a quarter second and reading it's volume, and if it's under the threshold stop recording. Thanks in advance You can access microphones through the Sound API, but it won't give you a simple loudness level. You'll just have to capture the data

Capture audio from Microphone without playing it back

不羁的心 提交于 2019-12-01 10:00:26
问题 I am trying to use a microphone and process the audio captured. I managed to do all that, but I have a problem... My audio captured is automatically played to the user, and I don't want that. audioSrc.clip = Microphone.Start(null, true, 1000, 44100); while (!(Microphone.GetPosition(null) > 0)) { } audioSrc.Play(); I tried to disable the audio listener and lower the volume of the audio source, but that didn't work. Anyone knows how I can capture audio without playing it back? EDIT 1: void