---
title: "VoiceInputIndicator"
description: "A voice input indicator that displays sound activity to the user."
type: "component"
lastmod: "2026-05-20T01:13:52.861686Z"
---
## API Reference

### VoiceInputIndicator

> Source set: Android

```kotlin
@Composable
public fun VoiceInputIndicator(
    level: () -> Float,
    modifier: Modifier = Modifier,
    indicatorColor: Color = GlimmerTheme.colors.primary,
)
```

#### Parameters

| | |
| --- | --- |
| level | The level of the voice input, ranging from 0.0 (silence) to 1.0 (loudest). |
| modifier | The modifier to be applied to the indicator. |
| indicatorColor | The color of the indicator bars. |

## Code Examples
### VoiceInputIndicatorSampleUsage
```kotlin
@Composable
fun VoiceInputIndicatorSampleUsage() {
    // Get audio input from microphone.
    // Normalize audio input to level 0...1
    // Pass normalized level to Composable.
    VoiceInputIndicator(level = { level })
}
```
