microphone

Processing of Microphone Input

China☆狼群 提交于 2019-12-05 02:42:47
问题 I am trying to get audio data from the microphone. I have achieved this by using the AudioRecord class which fills a buffer with type shorts. Eventually I would like to graph this buffer so that I get an oscilloscope like display (realtime information). The problem is that if I want to display a value (say in text) then I need a different thread to update the UI. Currently I'm doing this by using an AsyncTask and updating the UI with AsyncTasks.publishProgress() . So far I haven't been very

How to capture sound from microphone with java sound API?

走远了吗. 提交于 2019-12-05 00:44:47
问题 The tutorial http://download.oracle.com/javase/tutorial/sound/capturing.html does not cover how to select microphone. I am enumerating mixers with the following code System.out.println("Searching for microphones"); for(Mixer.Info mixerinfo : AudioSystem.getMixerInfo()) { mixer = AudioSystem.getMixer(mixerinfo); //System.out.println(mixerinfo.toString()); if( mixer.isLineSupported(Port.Info.MICROPHONE) ) { mixers.add(mixer); System.out.println(Integer.toString(mixers.size()) + ": " + mixerinfo

Simulate Microphone (virtual mic)

好久不见. 提交于 2019-12-05 00:41:46
I've got a problem where I need to "simulate" microphone output. Data will be coming over the network, decoded into PCM and basically needs to be written into the mic - which then other programs can read/record/whatever. I've been reading up on alsa but information is pretty sparse. The file plugin seemes promising - I was thinking of having a named pipe as "infile" which I could then deliver data to from my application. I can't get it to work however (vlc/audacity just segfault). pcm.testing { type file slave { pcm { type hw card 0 device 0 } } infile "/dev/urandom" format "raw" } Are there

Non-Speech Noise or Sound Recognition Software?

对着背影说爱祢 提交于 2019-12-05 00:36:54
问题 I'm working on some software for children, and looking to add the ability for the software to respond to a number of non-speech sounds. For instance, clapping, barking, whistling, fart noises, etc. I've used CMU Sphinx and the Windows Speech API in the past, however, as far as I can tell neither of these have any support for non-speech noises, and in fact I believe actively filter them out. In general I'm looking for "How do I get this functionality" but I suspect it may help if I break it

How can I capture audio input from 2 mics of my android phone real time and simultaneously

我的未来我决定 提交于 2019-12-04 19:37:16
I have a requirement where I need audio from both the mics on my android phone simultaneously in order to do some signal processing using Eclipse. Do you think it is possible to do this? Also can you suggest a method to start recording for both mics realtime simultaneously? For two instances of class AudioRecord, if I pass audio source as MIC and CAMCORDER respectively, will I be able to capture two separate mic inputs simultaneously? I am not sure if the mics will work in parallel, and also do not know how to get them to start recording at the same time. Any input regarding this will be

Get Audio from PC microphone with a C# program

只愿长相守 提交于 2019-12-04 19:23:59
I need to capture audio from a PC with Windows 7 with a C# program. I need to get all the frequencies until 20 khz. Do you know if there are a way to do it? You could take a look at the NAudio Library at codeplex http://naudio.codeplex.com . A nice project for recording mic input with NAudio can be found here http://voicerecorder.codeplex.com/ . I found some links that could help you Visit http://www.codeproject.com/Articles/2615/DirectShow-NET ? Or http://www.codeproject.com/Articles/4889/A-full-duplex-audio-player-in-C-using-the-waveIn-w ? Or You could use Matalab and Link it with .Net using

How to send audio stream via UDP in java?

两盒软妹~` 提交于 2019-12-04 14:29:21
I have a problem, i have set MediaLocator to microphone input, and then created Player. I need to grab that sound from the microphone, encode it to some lower quality stream, and send it as a datagram packet via UDP. Here's the code, i found most of it online and adapted it to my app: public class AudioSender extends Thread { private MediaLocator ml = new MediaLocator("javasound://44100"); private DatagramSocket socket; private boolean transmitting; private Player player; TargetDataLine mic; byte[] buffer; private AudioFormat format; private DatagramSocket datagramSocket(){ try { return new

Virtual audio driver (microphone)

跟風遠走 提交于 2019-12-04 14:10:58
I want to develop a virtual microphone driver. Please, do not say anything about DirectShow - that's not "the way". I need a solution that will work with any software including Skype and MSN. And DirectShow doesn't fit these requirements. I found AVStream Filter-Centric Simulated Capture Driver (avssamp.sys) in Windows 7 WDK. What I need is an audio part of it. By default it reads avssamp.wav and plays it. But this driver is registered as WDM streaming capture device. And I want it in Audio Capture Device. There are some posts in the web but they are all the same: http://www.tech-archive.net

iOS xcode microphone volume detection?

做~自己de王妃 提交于 2019-12-04 13:38:48
问题 What frameworks are required to detect how loud someone is talking into a microphone... Also, can anyone tell me what to search for in the documentation or google so I can create some code... What line of code would be commonly used when detecting volume levels of noise through the microphone? Thanks! 回答1: This seems to be a duplicate of: Realtime microphone sound level monitoring However, that question is old and the accepted answer links to a deprecated library. They now recommend that you

Capture microphone audio stream in Windows using C

ぐ巨炮叔叔 提交于 2019-12-04 13:08:48
I'm looking to build a Morse decoder (and eventually a coder) in C. I'd like to use the audio port as input, and sample the incoming voltage on the port. How do I go about reading the voltage on a microphone audio port in Windows using C? The simplist way is to use the waveIn functions provided by the Win32 API. You can read Recording and Playing Sound with the Waveform Audio Interface for an overview, or just dive into the API documentation . 来源: https://stackoverflow.com/questions/1897042/capture-microphone-audio-stream-in-windows-using-c