Hololight Stream for Unity core component - Microphone
Microphone
Hololight Stream supports the remote capture of the client device’s microphone. An example is in "com.hololight.stream/Samples/Microphone/MicrophoneCaptureExample.cs". Add the "MicrophoneCaptureExample" Prefab to the Scene or add the script to an existing object in the Scene. This example will playback the captured microphone stream from the client in the Unity Scene.
Supported client devices
-
HTC VIVE devices
-
Apple iOS and iPadOS
-
Apple Vision Pro
-
Meta Quest devices
-
Microsoft HoloLens 2
-
PICO 4 Ultra
Setup
Create a Hololight.Isar.IsarMicrophoneCapture object To start microphone capturing, use the IsarMicrophoneCapture.
Start() |
Returns an UnityEngine.AudioClip with the captured data, which can be used by the application. |
Stop() |
Stop capturing any microphone data on the client device. |
| Make sure to call IsarMicrophoneCapture.Dispose() when you are finished capturing from the microphone. This includes when stopping the application. This will make sure all allocated resources are uninitialized or destroyed. |