Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quest 3 microphone input garbled in build when using Unity WebRTC plugin #49

Closed
bnco-dev opened this issue Jan 26, 2024 · 2 comments
Closed
Assignees

Comments

@bnco-dev
Copy link
Contributor

Quest 3 microphone input for VOIP appears to be gathered or transmitted incorrectly. Audio received by other peers from the Quest 3 peer is played back on a short loop and misses samples.

As a workaround, we now fall back to the old dotnet WebRTC implementation on Android. This is the case as of 2ca2da6 (and so v1.0.0-pre.3).

@k-lara suggested it may be a sample rate issue, good place to start!

Related info:

  • Audio the Quest 3 peer receives from other peers is played back correctly.
  • Quest 2 works fine, send and receive.
@nsalminen
Copy link
Member

nsalminen commented Nov 21, 2024

@bnco-dev, thank you for this fix! Does this mean we can now always assume 16Khz audio is sent from each peer? If so, I will change/note that in the Ubiq-Genie demos!

@bnco-dev
Copy link
Contributor Author

Not necessarily, unfortunately. On Web the frequency will be whatever the user's audio device uses. On other platforms, Unity is a bit unreliable in this area. The frequency you request is not guaranteed: on some devices, the frequency arg is just ignored (example). For #49 the apparent source of the issue was a mismatch between the actual sample rate provided by the hardware and the reported sample rate of the audio clip. Lots of issues all round.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants