# Speaking While Muted

It's a UI best practice to show some visual feedback when the user is speaking while muted.
You can observe the state for this in `call.state.speakingWhileMuted`.

### Custom Snackbar

This example shows how to render a snackbar when the user is speaking while muted:

```kotlin
@Composable
fun SpeakingWhileMutedWarning(call: Call) {
    val speakingWhileMuted by call.state.speakingWhileMuted.collectAsState()

    if (speakingWhileMuted) {
        Snackbar {
            Text(text = "You're talking while muting the microphone!")
        }
    }
}
```

After building the code above, you'll see the snackbar like the result below:

![Reactions](/data/docs/video/android/_assets/cookbook/speaking-while-muted-call.png)


---

This page was last updated at 2026-03-13T13:17:52.761Z.

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