For the complete documentation index, see llms.txt. This page is also available as Markdown.

Quick Start

The audio denoiser ships with @whereby.com/core and @whereby.com/browser-sdk — there's nothing extra to install. The denoiser code is loaded on demand the first time you use it.

  1. Check that noise suppression is supported in the current browser

import { isAudioDenoiserSupported } from "@whereby.com/browser-sdk/react";

const [supported, setSupported] = React.useState(false);

// Lazy-loaded; can be called when needed
async function checkAudioDenoiserSupport() {
    setSupported(await isAudioDenoiserSupported());
}
  1. Toggle noise suppression using the room connection

import { useRoomConnection } from "@whereby.com/browser-sdk/react";

const { actions } = useRoomConnection(roomUrl, { localMediaOptions: { audio: true, video: true } });
const { enableAudioDenoiser, disableAudioDenoiser } = actions;

// Turn noise suppression on
await enableAudioDenoiser();

// ...or off
await disableAudioDenoiser();

Once enabled, the denoiser is automatically re-applied if the microphone device is later switched.

Last updated

Was this helpful?