Skip to main content
Cedar provides pre-built React components for voice interactions, along with guidance for creating custom voice UI components. These components integrate seamlessly with the voice state management system.

VoiceIndicator Component

The VoiceIndicator component provides visual feedback for voice states with smooth animations powered by Motion for React.

Basic Usage

Component Features

  • Listening State: Animated microphone icon with pulsing bars
  • Speaking State: Animated speaker icon with scaling effect
  • Error State: Alert icon with error message
  • Auto-hide: Only shows when voice is active or there’s an error

Animation Details

The component uses Motion for React with optimized animations:

Custom Voice Button

Create a custom voice button with enhanced visual feedback:

Voice Waveform Visualizer

Create an animated waveform visualizer for audio input:

Voice Status Panel

A comprehensive status panel showing all voice information:

Voice Settings Component

A settings panel for configuring voice options:

Complete Voice Interface

Combining all components into a comprehensive voice interface:

Styling Guidelines

CSS Classes for Voice Components

Accessibility Considerations

ARIA Labels and Screen Reader Support

Reduced Motion Support

Testing Voice Components

Next Steps

Voice Overview

Return to the main voice documentation

Backend Integration

Learn about setting up voice backend processing