Questions tagged [microphone]

A microphone is an acoustic-to-electric transducer or sensor that converts sound into an electrical signal.

This tag should be used for questions related to using software to interact with microphones in smart phones, desktops, laptops or other electronic devices.

Microphones may interface with a computer through multiple different mediums, including USB, TRRS (Tip Ring Ring Sleeve; colloquially referred to as a mic jack), and XLR. After an acoustic device within a microphone converts sound to an electrical signal, it must be processed by a computer using Digital Signal processing algorithms to transform the continuous-time signal into a discrete-time signal the computer can represent and store in memory.

Depending upon the desired bit-rate and resolution, these algorithms can have great impact upon the performance of software. An example might be in converting between different audio file formats.

1290 questions
-1
votes
1 answer

How to play audio files to microphone input

I was wondering how could I achieve a call chat between me and some other person which the other person does not hear me talk but rather the audio file. Let's say I own an audio file which contains a voice that says "Hello", he will hear that…
Amit
  • 207
  • 1
  • 4
  • 11
-1
votes
1 answer

Hardware limitations with iPhone Microphone

I'm using EZAudio FFT to analyze audio as the iPhone "hears" it. I am listening for high-pitched sounds embedded into music (17 kHz+). When the iPhone hears the sounds with no music, it records the data perfectly and hears the pitch fine. However,…
Jameson
  • 4,198
  • 4
  • 17
  • 31
-1
votes
1 answer

compute the power level of ambiant noise using mems microphones

I' m using digital microphone (MEMS) on STM32 discovery board Fto record ambiant noise, and I need to know how to convert the samples amplitude to power level in dB SPL. the microphone that I 'm using is the MP45DT02, in the datasheet the…
-1
votes
1 answer

Use the bus stop announcment system to detect whether the user is in the bus or not

I am implementing an app to track the location of buses based on Crowdsorcing. The riders send data long, lat, mac, route, timestamp to the server as JSON string which is being inserted into the bus table. The waiting rider at the stop can query the…
Mr Asker
  • 2,300
  • 11
  • 31
  • 56
-1
votes
1 answer

Is there any way to check if there is any input to the mic or not?

Is there any way to let's say, user clicks a button, and then he needs to say something to the mic, but only after he finishes to talk to the mic, the app will wait 5 seconds, and then the app will do something. is there any code or example for…
Yosi Dahan
  • 13
  • 2
  • 4
-1
votes
1 answer

watchkit developer library allows to access microphone?

Regarding to new API release for watchkit on WWDC 2015, I am wondering if watchkit library allows a developer to access audio data coming from microphone on apple watch? if we can control the gain of microphone on apple watch? if we can…
bhoh
  • 1
-1
votes
1 answer

Two audio inputs in FFmpeg have different volumes

I am using the command below in order to capture desktop, speaker and microphone in a C# application: ffmpeg.exe -y -f dshow -i audio="virtual-audio-capturer":audio="Microphone" -f gdigrab -draw_mouse 0 -framerate 15 -i desktop…
Matin Lotfaliee
  • 1,745
  • 2
  • 21
  • 43
-1
votes
1 answer

Flash streaming microphone (without cam)

How I modify this code, if I want that it doesn't use the webcam, only use is microphone? I want if it run doesn't turn on the camera. Thanks, private function InitCameraAndMicrophone():void { m_Microphone =…
-1
votes
1 answer

Vibrating an Android phone based on mic input

I want to record the voice/sound input from the android phone and convert to specific type of vibrations of the phone. The idea is to help differently abled people with their surrounding environment and help in giving some sense of nearby obstacles…
Shan
  • 5,054
  • 12
  • 44
  • 58
-1
votes
1 answer

"how to manipulate the microphone(laptop embedded microphone) using NAudio API?"

I would like to ask: "how to manipulate the microphone(laptop embedded microphone) using NAudio API?" i don't like to record the sound that comes from the mic but measure it in terms of dB. its like a faucet of water open and placing it through a…
mikepicart
  • 17
  • 1
  • 2
-2
votes
1 answer

How can I get the microphone volume in Angular?

Is there any example to get the volume of the microphone in an Angular app?
-2
votes
1 answer

Uncaught TypeError: Cannot read property '0' of undefined using speech recognition

Uncaught TypeError: Cannot read property '0' of undefined at handleResults (Script1.js:17) at SpeechRecognition.recog.onresult (Script1.js:11) Javascript: const speechRecognition = window.webkitSpeechRecognition /*Chrome*/ || …
Anoynomous
  • 27
  • 4
-2
votes
1 answer

How to play music in left speaker and microphone voice in right speaker with raspberry pi python?

I have a USB mic and raspberry pi. Here is what I'm trying to do. I have "music.wav" file where the sound track is set to left channel and I have USB mic connected to raspberry pi. When I play "music.wav" and speak in mic .I can hear music in left…
-2
votes
1 answer

expected primary-expression before token ','

Ok so I have been trying to make a sound controlled servo with an Arduino code and I seem to be doing something wrong. What is happening is i am testing the code with the built in checker to the program and it keeps giving me an error code…
-2
votes
1 answer

AttributeError: __Enter__ - How to use?

I'm trying to make a simple speech recognition tool in Python, and have tried the following code: import speech_recognition as sr r = sr.Recognizer() with sr.Microphone as source: print ("Speak into the microphone") audio = r.listen(source)…
1 2 3
85
86