Audio and mic to usb

broken image
broken image

MAndroidDeviceMap = mUsbManAndroid.getDeviceList() ĪrrayList usbDevicesList = new ArrayList() įor (String key : mAndroidDeviceMap.keySet()) else if (device.getDeviceClass() = UsbConstants. Precision condenser microphone for critical measurement and recording applications Connects to your PC or Mac via USB port True omnidirectional pattern with. Generate a list of connected USB device which class is UsbConstants.USB_CLASS_AUDIO private static final String ACTION_USB_PERMISSION = PACKAGE_NAME + '.USB_PERMISSION'

broken image
broken image

Find out what characteristics this device has (supported sampling rates, channels etc.).Check if there is USB microphone connected to the device.To use third-party libraries is overkill for me since I need to only receive the stream of audio data from the microphone, the rest of the processing is already done and working, only the audio source is the issue. What I need is to use the USB audio feature but so far I am unable to make any progress. I have tried to use the MediaCapture with as source which worked but recording quality isn't quite usable for me and you can't be sure if the audio source is really USB or the built in device microphone. I am struggling on how to capture the audio stream from connected USB microphone.