Skip to content

Possible way for use USB audio #1485

@cristiano-linvix

Description

@cristiano-linvix

Hello everyone, everything good?

I'm trying to implement USB audio capture, whether it's an external USB microphone or others (like a webcam).

Currently Android allows you to use (API 23) AudioRecord and specify the preferred device for recording with the setPreferredDevice function, I see the possibility of using the read function to capture the audio buffer to be able to send it to webrtc.

The question is: how do I pass the audio stream to webrtc (like we did with the UVC video for example)?

Any ideas on how to proceed?

NOTE: the device in question appears in the code snippet below:

 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
 
 AudioDeviceInfo[] deviceInfos = audioManager.getDevices(AudioManager.GET_DEVICES_INPUTS);

The device type is: AudioDeviceInfo.TYPE_USB_DEVICE;

@saghul @8BallBomBom

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmedThe issue has been confirmedfeature-requestNew feature or requesthelp-wantedExtra attention is neededneeds-researchResearch might be needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions