oboe
oboe copied to clipboard
How to set the microphone direction in Oboe similar to audioRecord.setPreferredMicrophoneDirection()
Android version(s): 12 Oboe version: 1.8.1
In my app, I use audioRecord.setPreferredMicrophoneDirection() to set which microphone to use for recording. How can I achieve this in Oboe?
AFAIK, there is not a setPreferredMicrophoneDirection in oboe as the API is only in JAVA but not native.
An alternative way for selecting microphone is to use setDeviceId set microphone preference for your recording. The device id can be know by calling JAVA API AudioManager.getDevices. The microphone's orientation can be know by querying MicrophoneInfo.getOrientation.