microphone

How can i remove background noise with java, while recording audio in a crowd zone?

拥有回忆 提交于 2019-11-30 07:24:13
When i capture with JavaSound or Third party sound capture tools and record it to a file. Afterwards read the file back to modify it, is there any way to remove the "background noise" with my java application. Such as road traffic/air noises while main person was talking? Thanks Removing background noise is very difficult. If it is uniform noise, such as the "white" noise on an airplane, there are algorithms to remove those frequency components. But if the noise is non-uniform and similar in nature as your good recording, e.g. people talking in the background, street noise, etc. it will be

Getting data from a microphone in C#

独自空忆成欢 提交于 2019-11-30 06:57:23
I'm trying to record audio data from a microphone (or line-in), and then replay it again, using C#. Any suggestions on how I can achieve this? have a look at the open source .NET Voice Recorder project which uses NAudio . There is an article on Coding4Fun explaining how it works. See Console and multithreaded recording and playback class Program { static void Main(string[] args) { rex.Data += new RecorderEx.DataEventHandler(rex_Data); rex.Open += new EventHandler(rex_Open); rex.Close += new EventHandler(rex_Close); rex.Format = pcmFormat; rex.StartRecord(); Console.WriteLine("Please press

How to adjust microphone volume in android?

╄→гoц情女王★ 提交于 2019-11-30 05:39:31
问题 I want to recorder the sound, but the mic (microphone) input sound is too loud, and I want to adjust the mic volume, would someone help me? The following is the main code: private int audioSource = MediaRecorder.AudioSource.MIC; private static int sampleRateInHz = 8000; private static int channelConfig = AudioFormat.CHANNEL_CONFIGURATION_MONO; private static int audioFormat = AudioFormat.ENCODING_PCM_16BIT; audioRecord = new AudioRecord(audioSource, sampleRateInHz,channelConfig, audioFormat,

Is it possible to share audio input (Microphone) stream in Android?

社会主义新天地 提交于 2019-11-30 05:24:46
问题 I am writing an application that runs as a background service recording and analyzing audio recorded from the microphone. When my app is running I can't use other apps that use the microphone (e.g. phone, voice recording, etc...). My question is - Is there a way to share the microphone stream in Android? Maybe by using the NDK? If not, is it possible to receive an indication (e.g. a BroadcastIntent) that another app is requiring the microphone? 回答1: Simple Answer would be "NO" , This is just

Getting decibel from an Android microphone

天大地大妈咪最大 提交于 2019-11-30 04:07:20
I have been searching for quite some time now, and I haven't been able to find a way to actually get an SPL/db value from a microphone on Android. The few threads and articles that I have found that discussed it treated it like something so obvious that anyone should be able to do it, and were more concerned with getting their conversion algorithms correct. Does anyone know how to do this? You would have to first disable any automatic level control. I assume you either know, or know where to look to find out how to record samples from the microphone without ALC. From then on, its basically all

Microphone access in Python

人盡茶涼 提交于 2019-11-30 03:56:53
Can I access a users microphone in Python? Sorry I forgot not everyone is a mind reader: Windows at minimum XP but Vista support would be VERY good. Best way to go about it would be to use the ctypes library and use WinMM from that. mixerOpen will open a microphone device and you can read the data easily from there. Should be very straightforward. I got the job done with pyaudio It comes with a binary installer for windows and there's even an example on how to record through the microphone and save to a wave file. Nice! I used it on Windows XP, not sure how it will do on Vista though, sorry.

Microphone activity level of WebRTC MediaStream

▼魔方 西西 提交于 2019-11-30 03:54:51
I would like some advice on how best to get the microphone activity level of an audio MediaStreamTrack javascript object in Chrome/Canary. The MediaStreamTrack object is an audio track of the MediaStream returned by getUserMedia , as part of the WebRTC javascript API. YumYumYum When microphone has audio the green bar up and down very nice: <script type="text/javascript"> navigator.webkitGetUserMedia({audio:true, video:true}, function(stream){ // audioContext = new webkitAudioContext(); deprecated OLD!! audioContext = new AudioContext(); // NEW!! analyser = audioContext.createAnalyser();

How can I record 2 microphone in Android simultaneously?

瘦欲@ 提交于 2019-11-30 00:53:50
I'm trying to record audio signals from 2 in-built microphone(bottom, top) at the same time. I can pick up bottom microphone signal using MediaRecorder.AudioSource.MIC and top microphone signal using MediaRecorder.AudioSource.CAMCORDER I can record separately but I want to record at the same time from 2 microphones. Does anyone know how to record simultaneously? I tried & or | operator but I can get only 1 channel signal. I use Galaxy S2 device. I will appreciate any response :) Thanks in advance. There is a misconception that in devices with 2 microphones, both the microphones will be used

How To Modify Android's Bluetooth Stack to Enable A2dp Sink

故事扮演 提交于 2019-11-30 00:29:48
I'm working on an audio recorder app that uses a bluetooth mic to record audio on to an Android device (Nexus 7 - rooted Android 4.4.2). It's currently implemented on HFP and everything is working fine. The bluetooth mic is implemented with Bluegiga's WT32 bluetooth module + a mic input, audio quality via HFP isn't great but it's sufficient for now. However, I'm now trying to change the bluetooth profile to A2dp, since there are two mic inputs (L/R) and WT32 supports A2dp (source). After much research I found that stock Android doesn't support A2dp (sink), and it's possible to modify Android's

Choose between built in mic and headset in iOS

南楼画角 提交于 2019-11-29 11:19:19
We are developing an app that needs to change the audio route in iOS. We need to get some information from the mic input and then change to the internal mic of the device to record ambient sound. We have seen 2 topics from these pages: Forcing iPhone Microphone as Audio Input and Use built-in mic if Headset is plugged in but i guess there isn't any final word according to this situation. Now, the code works but we can select the route of the audio input. We haven't found anything in the documentation provided by Apple (Remote IO). Is there anything new about this? Thanks! Warning : This answer