# Speaking While Muted

Remind users they're speaking while muted. The SDK includes [`SpeakingWhileMutedNotification`](https://getstream.io/video/docs/react/v2/ui-components/utility/speaking-while-muted-notification/), 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:

```tsx
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>;
};
```

---

For the most recent version of this documentation, visit [https://getstream.io/video/docs/react/v2/ui-cookbook/speaking-while-muted/](https://getstream.io/video/docs/react/v2/ui-cookbook/speaking-while-muted/).