saki4510t/UVC4UnityAndroid

Get Audio From Webcam

Opened this issue · 2 comments

Hey excellent work. Is there any way I can use the library to get audio from the webcam? I need the audio capture to come from the camera and not the phone mic. Thanks for your help!

Experimentally add UAC functionality on latest commit.
Currently plugin passes audio stream from UAC to AudioClip and playback using AudioSource and AudioListener but unfortunatelly audio system of Unity has long delay(100-200ms) than real stream.
If you want to get raw audio stream / use other audio system(something like a native Android audio), please see plugin code in this repository(available in UVCManager).

Okay awesome, thanks I'll check it out!