microphone

How does noise cancellation work in android?

瘦欲@ 提交于 2020-01-01 04:52:08
问题 I came across this relatively old post which describes how impressively Nexus One's noise cancellation works and I was wondering where can I find more information about its implementation in the OS software. In particular: How much of it is done using software and how much of it is done in hardware? Which modules in the Android source code are responsible for noise cancellation? Can I control its behavior via Android's API? (if so, which ones) Does it also work with the microphone in the

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

≡放荡痞女 提交于 2019-12-31 04:11:14
问题 I want to see if there is a microphone active using Python. How can I do it? Thanks in advance! 回答1: 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. 回答2: This is what I wanted: import ctypes from ctypes import * winmm= windll.winmm

Getting data from a microphone in C#

女生的网名这么多〃 提交于 2019-12-30 02:07:05
问题 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? 回答1: have a look at the open source .NET Voice Recorder project which uses NAudio. There is an article on Coding4Fun explaining how it works. 回答2: 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

Microphone activity level of WebRTC MediaStream

▼魔方 西西 提交于 2019-12-30 00:55:11
问题 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. 回答1: 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

How to extract sound object to a mono byte array in AS3

有些话、适合烂在心里 提交于 2019-12-25 03:25:14
问题 I'm trying to prepend the byte array of a sound object to a captured microphone sound byte array. It works, but the extracted sound object get pichted down and doubled in length. I guess this is because the byte array of the sound object is in stereo, while the mic byte array is in mono. I have this: sound.extract(myByteArray, extract); myByteArray now contains the stereo data. How can I turn this to mono (I'm new to ByteArrays). UPDATE: Here's a working solution: existingByte.position = 0;

Mic is not working in dialogflow web integration with custom android app

别说谁变了你拦得住时间么 提交于 2019-12-25 00:28:52
问题 I am integrating my dialogflow agent with web android app but mic is not working with web integration. Although i am getting response while using text input in web demo but when i give input through mic, then neither input is recognised nor i am getting any response in my custom android app of web integration with dialogflow. I have also allowed microphone in iframe but still it is not working. Can anyone help me on this Please? <iframe allow="microphone;" width="350" height="430" src="https:

Digital microphone : I2S data output [closed]

被刻印的时光 ゝ 提交于 2019-12-24 21:22:27
问题 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 last year . I have been playing around with some digital microphones, which have an I2S interface. I managed to get it working (Arduino board with small I2S mems board). At least, I think I did. When reading the I2S specification, or the microphone datasheet, I can not seem to find the answer to the following simple questions

Changing audio input using Java?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 10:34:44
问题 I'd like to modify the audio input stream, the stream that would come from my microphone. I have looked through the java.sound package API, but did not entirely understand it, nor how to modify direct sound input. Does anyone here know how to do that, or know an API that is capable of doing it? 回答1: You want a mixture of things: The Java Sound system: http://www.oracle.com/technetwork/java/index-139508.html A trail for it: http://docs.oracle.com/javase/tutorial/sound/index.html Using audio

Audiokit crashes when enabling sandbox in OS X

倾然丶 夕夏残阳落幕 提交于 2019-12-24 10:08:07
问题 My app using Audiokit is running perfectly without sandbox. But as soon as I enable sandbox in Xcode the app crashes when trying to initialize the mic access. (The app is on the App Store for iOS, but now I am trying to submit to the Mac Store as a OS X app but I need to enable sandbox) Has anyone been able to submit a Mac app to the Mac App Store with Audiokit in it? ERROR: >avae> AVAudioEngine.mm:275: AttachNode: required condition is false: node != nil 回答1: To enable microphone access in

How to calibrate an external microphone device?

三世轮回 提交于 2019-12-24 09:38:07
问题 I have been working on a research project which involves making audio recordings to perform some digital signal processing analysis. To aid me in my recording, my research supervisor has provided me with an i436 microphone. It looks like this. However, before making the recording he has asked me to calibrate the device. I have a rather blurry idea of what calibration means. Since different microphones may have different intensities / recording conditions, they will generate different results