Repository navigation
Carry the glasses' microphone on the camera stream (iOS) - #50
Merged
Merged
Conversation
startStreamSession(audio: true) asks DAT for 16 kHz mono PCM on the camera stream and delivers it through the new audioFramesStream() as Uint8List. New requestMicrophonePermission() and getMicrophonePermissionStatus(). The audio never touches the phone's audio input, so it keeps arriving with the app backgrounded, where iOS refuses to start an AVAudioSession recording, and it leaves the glasses on A2DP instead of the 8 kHz hands-free link. Buffers are copied inside the publisher callback and delivered on the main thread; the audio listener is cancelled before the camera stops, per Meta's audio-streaming guidance. Android ignores the audio flag for now.
Collaborator
|
@diegolopezrm thanks for the contribution! Will take a look very soon. |
Collaborator
|
Two lifecycle details worth fixing:
Happy to take another look once these are addressed. Thanks again! |
Collaborator
|
Finally I addressed these issues myself so I could add this PR to the next release today! |
This was referenced Oct 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an
audiooption tostartStreamSessionthat carries the glasses' microphone on the camera stream (16 kHz mono PCM), exposed throughaudioFramesStream(), plusrequestMicrophonePermission()andgetMicrophonePermissionStatus(). I needed it for a voice assistant that's opened with "Hey Meta": iOS won't start recording from the background, and this audio never touches the phone's audio input. iOS only for now; Android's SDK has the same API, but I can't test it on hardware. Tests pass, the example builds, and I've been running the same change on Ray-Ban Meta Gen 3.