---
title: "SoundEffect"
description: "Interface representing the capability to play sound effects on user interaction."
type: "interface"
lastmod: "2026-05-20T01:13:53.399796Z"
---
## API Reference

> Source set: Common

```kotlin
interface SoundEffect
```

Interface representing the capability to play sound effects on user interaction.

This is used primarily to play interaction sound effects for click gestures.

## Functions

### playClickSound

```kotlin
fun playClickSound()
```

Plays a click sound effect.

This method triggers the standard click sound effect, provided it is supported by the
platform, enabled by the user's system, and has not been silenced or customized via
`SoundEffectOnInteraction`.

## Code Examples

### InteractionSoundSamples
```kotlin
@Composable
fun InteractionSoundSamples() {
    Column(modifier = Modifier.padding(16.dp)) {
        Text("Standard Clickable (Has Sound):")
        Button(onClick = {}) { Text("Click me") }
        Text("\nDisabled Sound Feedback:")
        SoundEffectOnInteraction(enabled = false) { Button(onClick = {}) { Text("Silent Button") } }
    }
}
```
