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
12
votes
6 answers

Forcing iPhone Microphone as Audio Input

I am developing an iOS application (targetted specifically for iPhone, at the moment) that requires the application to record audio only from iPhone internal microphone (even when headphone/headset is plugged in), and playback at headphone (let's…
jimmyti
  • 188
  • 1
  • 2
  • 10
12
votes
2 answers

Getting data from a microphone in C#

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?
Hashim Al-Arab
  • 121
  • 1
  • 1
  • 3
12
votes
1 answer

Android (Java) Real-time Audio Input (microphone AND USB) and Output

I would like to build an Android App to take audio data from two microphones, mix the sound with some from memory, and play the sound through headphones. This needs to be done in real-time. Could you please refer me to some tutorials or any…
user1854928
  • 123
  • 1
  • 5
12
votes
2 answers

Realtime microphone sound level monitoring

I'm trying to access sound volume data from the microphone in realtime. I've tried AVAudioPlayer but it only monitors sounds from a source like an mp3 and not from a microphone. I've also tried The SpeakHere app but it's proving to be much tougher…
Manny
  • 169
  • 1
  • 1
  • 5
11
votes
2 answers

flutter iOS can not use microphone, problem with permission_handler

I try use microphone in my flutter app. I create method do try ask user about microphone permissions. It working on Android, but not working on iOS. Of course I add this line to info.plist: NSMicrophoneUsageDescription Used to…
sosnus
  • 968
  • 10
  • 28
11
votes
1 answer

Python Librosa with Microphone input

So I am trying to get librosa to work with a microphone input instead of just a wav file and have been running to a few problems. Initially I use the pyaudio library to connect to the microphone but I am having trouble translating this data for…
Vince
  • 119
  • 2
  • 8
11
votes
1 answer

Error activating microphone in google Chrome

Im trying to enable microphone to allow user record audio, but I get this error: Uncaught TypeError: Cannot read property 'getUserMedia' of undefined at activateMicrophone navigator.mediaDevices.getUserMedia({audio: true, video:false}) …
pzsette
  • 286
  • 1
  • 5
  • 19
11
votes
1 answer

Playing sound from buffer

I'm trying to build a real-time voice call application. My goal is to use native JS microphone api and send data via websocket to the other clients. I figured out the following code: