Compose Component

ContainedVoiceInputIndicator

A voice input indicator with a background container that displays sound activity to the user.

VoiceInputIndicatorSampleUsage

@Sampled
@Composable
fun VoiceInputIndicatorSampleUsage() {
    // Get audio input from microphone.
    // Normalize audio input to level 0...1

    // Pass normalized level to Composable.
    VoiceInputIndicator(level = { level })
}

private const val level = 1f
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: