edimuj / cordova-plugin-audioinput

This iOS/Android Cordova/PhoneGap plugin enables audio capture from the device microphone, by in near real-time forwarding audio to the web layer of your application. A typical usage scenario for this plugin would be to use the captured audio as source for a web audio node chain, where it then can be analyzed, manipulated and/or played.

Home Page:https://github.com/edimuj/app-audioinput-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get iOS recording with stereo and 8-bit working properly

edimuj opened this issue · comments

commented

Right now only mono and recording with bit depth of 16 works as it should in the iOS part of the plugin. It would be good to get it to work with stereo and/or 8-bit recording.

I can't find where I read this, but apparently iOS devices have a dedicated DSP chip for their microphones that handles noise reduction etc. it may be that it runs in 16 bit and the only way to get to 8 bit is to downsample?

commented

Yes, I believe you're right and that the best way to achieve this is to use an Audio Converter: https://developer.apple.com/library/ios/documentation/MusicAudio/Reference/AudioConverterServicesReference/

The hardware microphones on most iOS devices are mono, but recording can be performed when using a stereo supporting external (e.g. bluetooth) microphone.

I don't know how important this actually is, but the plugin should behave as platform independent as possible and try to deliver the equal functionality on all the supported platforms, so this is still a "nice to have feature" with low prio.

commented

Since there hasn't been any activity on this project for quite some time, I'm closing it. Feel free to reopen if a need arises.