Uncaught Error: NOT_SUPPORTED_SAMPLE_RATE when using higher bitrate audio output devices and noise-cancellation
#261
Labels
bug
Something isn't working
This issue can be reproduced using the Daily Prebuilt client.
Expected behavior
Ideally, higher bitrate output devices should be supported when background noise reduction is enabled. Alternatively, the error should be handled by Daily and surfaced as a documented error event. This would allow developers to handle the issue in custom Daily call clients.
Describe the bug (unexpected behavior)
If the selected output device is configured to use a higher bitrate (e.g. 24-bit 192.0 kHz), an uncaught error will be thrown if background noise reduction is enabled (the
noise-cancellation
audio processor input setting).Steps to reproduce
This issue has been reproduced on macOS Sequoia 15.2:
Open the
Audio MIDI Setup
utility, which is packaged with macOS.Select an audio device which supports higher bitrates. In this particular case, we're using a Fosi Audio DAC-Q4 and a Reiyin DA-DD DAC. Both devices support higher bitrates, and setting up either one of them to use a higher bitrate will trigger the error.
Select 24-bit 192.0 kHz as the desired sample rate for the device.
Join a Daily test call, ideally using Daily Prebuilt as this will ensure the error is coming from the Daily library and not our own code (e.g. open your equivalent of https://foobar.daily.co/RMxyz123 in a browser, in this case we used Google Chrome)
For your audio output device, choose the audio device that you configured in step 3.
Click on "Reduce" to enable background noise reduction.
Observe the error in the console.
Screenshots
See above.
System information
Additional context
Daily versions:
The text was updated successfully, but these errors were encountered: