# 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
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](@video/android/_assets/cookbook/speaking-while-muted-call.png)

---

This page was last updated at 2025-08-15T14:16:34.868Z.

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/).