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
197
votes
1 answer

“SimulatorTrampoline.xpc” would like to access the microphone

I recently upgraded to Swift 5, Xcode version 10.2 (10E125), and after fixing a few compile issues on an app in progress, see this new and never-seen-before request. I can find no evidence of it in my project via direct searching, and no search…
drew..
  • 3,234
  • 3
  • 16
  • 19
62
votes
4 answers

Access microphone from a browser - Javascript

Is it possible to access the microphone (built-in or auxiliary) from a browser using client-side JavaScript? Ideally, it would store the recorded audio in the browser. Thanks!
chris_aych
  • 729
  • 1
  • 5
  • 8
58
votes
3 answers

How get sound input from microphone in python, and process it on the fly?

Greetings, I'm trying to write a program in Python which would print a string every time it gets a tap in the microphone. When I say 'tap', I mean a loud sudden noise or something similar. I searched in SO and found this post: Recognising tone of…
Alex Ntousias
  • 8,962
  • 8
  • 39
  • 47
51
votes
5 answers

How do you enable a microphone input in the android emulator

I have been on a rough ride trying to do something using the Speech recognition on an android emulator. Having finally installed the market place and the Google Voice Search app - I am so close to enabling my emulator to do what I want - recognize…
RenegadeAndy
  • 5,440
  • 18
  • 70
  • 130
45
votes
3 answers

Multichannel USB recording with Java Sound API?

I'm trying to record/process some audio from three usb microphones with Java Sound on Snow Leopard (but can switch to Windows if it fixes things). Problem is, when I try to use the mixer that corresponds to the usb mic, Java Sound tells me that the…
Tom
  • 593
  • 4
  • 6
40
votes
8 answers

iOS check if application has access to microphone

With the introduction of iOS 7, applications have to request microphone access when they want to record audio. How do I check if the application has access to the microphone? In the iOS 8 SDK I can use the AVAudioSessionRecordPermission enum, but…
lukas
  • 2,300
  • 6
  • 28
  • 41
35
votes
2 answers

Detect tap with pyaudio from live mic

How would I use pyaudio to detect a sudden tapping noise from a live microphone?
a sandwhich
  • 4,352
  • 12
  • 41
  • 62
33
votes
3 answers

Disable noise cancellation for microphone in Android (1.5)?

Is it possible to disable noise cancellation for the microphone in Android (specifically 1.5) via code? I want to create a dumb MicrophoneApp that records all the background noises, but I believe that noise cancellation for the microphone is getting…
Dan
  • 121
  • 1
  • 2
  • 4
32
votes
3 answers

How does setMicrophoneMute() work?

I have been trying to use Android's AudioManager.setMicrophoneMute() without much success. That is, it simply refuses to mute the microphone, no matter what I do. I searched the web for some clues and I found several references reporting similar…
ateiob
  • 9,016
  • 10
  • 44
  • 55
27
votes
1 answer

Java Sound API - capturing microphone

I have been reading up on the Sound API for Java for a couple of days I am unable to make sense of it. I am decent programmer, I just having difficulty getting my head around the API. I have been trying to capture audio from my microphone and…
Mahdi Yusuf
  • 19,931
  • 26
  • 72
  • 101
27
votes
3 answers

How to record audio on webpage (iOS, Android, PC/Mac) - no flash

I have a requirement to allow a user to record an audio file using their microphone, but it has to work without flash as it needs to work on iOS (mobile safari), Android browser or Chrome, and a modern browser on a PC/Mac. Is there a clean, simple…
Jim Jones
  • 2,767
  • 4
  • 33
  • 39
26
votes
2 answers

Linux pipe audio file to microphone input

I'm looking for a way to feed audio data from a file into the microphone so when 3rd party applications (such as arecord or Chromium's "search by voice" feature) use the microphone for audio input, they receive the audio data from the file…
cheerupcharlie
  • 580
  • 1
  • 5
  • 12
26
votes
4 answers

Is there ANY android emulator that supports microphone input?

So far I haven't been able to find any solution that would allow me to test voice input via microphone on the android emulator. I have been able to get away during development by limiting my testing to cheap Android phones (sorry, I don't have much…
srf
  • 2,410
  • 4
  • 28
  • 41
24
votes
5 answers

How to sample microphone on Android without recording to get live amplitude/level?

I was trying to get the amplitude level of a microphone on Android like so: MediaRecorder recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); Timer timer = new Timer(); timer.scheduleAtFixedRate(new…
Tom
  • 8,536
  • 31
  • 133
  • 232
23
votes
1 answer

microphone in windows 10 in virtualbox

I have installed the Build 9926 of the windows 10 technical preview i.e The January Build, on Windows 7. I am trying to use the voice assistance of cortana on my Virtuabox but am not able to do so. The microphone works perfectly fine on my host…
Vatsal Nagda
  • 255
  • 1
  • 2
  • 4
1
2 3
85 86