oboe icon indicating copy to clipboard operation
oboe copied to clipboard

How to set the microphone direction in Oboe similar to audioRecord.setPreferredMicrophoneDirection()

Open adaJQD opened this issue 1 year ago • 1 comments

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?

adaJQD avatar Apr 15 '24 06:04 adaJQD

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.

flamme avatar Apr 24 '24 05:04 flamme