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

How to addTrack in MediaStream in WebRTC

I'm using webrtc to communicate between to peers. I wan't to add new track to old generated stream, as I wan't to give functionality to users to switch their microphones during audio communications. The code I'm using is, Let "pc" be the…
Akshay Rathore
  • 819
  • 1
  • 9
  • 23
21
votes
4 answers

Immediate Audio Input & Output Android

In my Android App, I would like to take in some audio from the mic of the smartphone and play it immediately, live, like a microphone, with no lag. I am currently thinking of using AudioRecord and AudioTrack classes (from what I have read), but I'm…
Adifyr
  • 2,649
  • 7
  • 41
  • 62
20
votes
3 answers

Android internal microphone release issues

I have a very interesting problem. I was under the impression that when my app uses the microphone, and the Android system process (like incoming or outgoing call) needs the microphone, my app releases it without any consideration. But i guess that…
Borce Ivanovski
  • 561
  • 1
  • 4
  • 23
20
votes
1 answer

Java Record Mic to Byte Array and Play sound

I want to make a live voice chatting program in Java, but I know nothing about recording/playing sound in Java, so with the help of Google, I think I have been able to record from my mic to a byte array with the following: AudioFormat format = new…
XQEWR
  • 638
  • 3
  • 11
  • 24
19
votes
4 answers

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

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…
Eu-Lee
  • 203
  • 1
  • 2
  • 4
19
votes
0 answers

How to simulate audio input to Microphone using .wav file

My target is to use a .wav file as a substitute for microphone input in the Emulator. The .wav file has to be recognized and processed by the Speech Recorder in the Android emulator. I want to test the Speech Recorder by giving voice commands from…
Hareesh Jr
  • 215
  • 1
  • 8
18
votes
1 answer

Adjust Microphone Recording Volume

We are trying to adjust the volume level at which we record. It seems like the microphone is very sensitive and picks up a lot of static. We looked at setVolumeControlStream, but could not find a stream to pass into it to control the microphone.
Michael
  • 1,816
  • 7
  • 21
  • 35
18
votes
1 answer

Use microphone in multiple app simultaneously in Android

We have an Android device on which we would like to use the microphone in 2 app simultaneously. In fact, we have a vocal command service that is running in the background (we are using the CMU Sphinx library). The problem is when we start a video…
Louisbob
  • 860
  • 3
  • 9
  • 22
18
votes
3 answers

HTML Audio recording until silence?

I'm looking for a browser-based way of recording until a silence occurs. HTML audio recording from the microphone is possible in Firefox and Chrome - using Recordmp3js…
GavinBrelstaff
  • 3,016
  • 2
  • 21
  • 39
16
votes
2 answers

Capture a Microphone Audio Stream Using .NET Framework

I need to capture the input stream from a microphone in my application, which is written in VB.NET. I need to be able to stream this data to a file or over HTTP and possibly encode it using LAME MP3. Can anybody help me get started with…
Josh Stodola
  • 81,538
  • 47
  • 180
  • 227
16
votes
3 answers

Microphone activity level of WebRTC MediaStream

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…
user1710407
  • 491
  • 1
  • 5
  • 16
14
votes
1 answer

Why is it impossible to use the Speech Recorder on the Android emulator?

I am trying to run the Speech Recorder that comes with the Android 2.2 emulator. The problem is that the moment I click the "Record" button: It aborts with an error message "The application Speech Recorder (process com.android.speechrecorder) has…
srf
  • 2,410
  • 4
  • 28
  • 41
14
votes
4 answers

Android AudioRecord initialization fails every time

My problem is simple to explain -- I am trying to create a AudioRecord object but it fails to initialize (ie after the constructor, getState returns 0, indicating failure). I am running this from Eclipse on a MotoDroid 1 running OS 2.2.1. My…
Dave
  • 7,589
  • 12
  • 36
  • 42
12
votes
1 answer

how to play sound from microphone to speaker directly on android?

in my application, I need to direct sound from microphone directly to speaker. No other actions. I found a way to direct sound from microphone to earpiece by playing a file and setting speaker off. So I guess speaker can work similarly. However I…
A117
  • 499
  • 1
  • 5
  • 13
12
votes
1 answer

Simulate Microphone (virtual mic)

I've got a problem where I need to "simulate" microphone output. Data will be coming over the network, decoded into PCM and basically needs to be written into the mic - which then other programs can read/record/whatever. I've been reading up on…
ag_
  • 121
  • 1
  • 3
1
2
3
85 86