Skip to content
Platform docs
Auth, users, webhooks & more
Info:
This is beta documentation for Stream Video React SDK v2. For the latest stable version, see the latest version (v1).

Speaking While Muted

Remind users they're speaking while muted. The SDK includes SpeakingWhileMutedNotification, but here's how to build your own.

Best Practices

  • Position the notification near the microphone toggle button for clear context.
  • Use useMicrophoneState hook - isSpeakingWhileMuted handles detection automatically.
  • Dismiss notification after a few seconds or when user unmutes.

Custom implementation

Show notification when isSpeakingWhileMuted is true:

import { useCallStateHooks } from "@stream-io/video-react-sdk";

export const SpeakingWhileMutedNotification = () => {
  const { useMicrophoneState } = useCallStateHooks();
  const { isSpeakingWhileMuted } = useMicrophoneState();

  if (!isSpeakingWhileMuted) return null;
  return <div>You are muted</div>;
};