Prerequisites
Before installing React Voice Visualizer, ensure your project meets the following requirements:- React: Version 18.2.0 or higher, or React 19.0.0+
- React DOM: Version 18.2.0 or higher, or React 19.0.0+
- Node.js: A recent LTS version is recommended
React Voice Visualizer requires React 18.2.0+ or React 19.0.0+ as peer dependencies. Make sure your project has React installed before adding this library.
Package Installation
Install React Voice Visualizer using your preferred package manager:Verify Installation
After installation, verify that the package is correctly installed by checking yourpackage.json:
package.json
TypeScript Support
React Voice Visualizer is written in TypeScript and includes full type definitions out of the box. No additional@types packages are needed.
The library exports TypeScript types for all components, hooks, and their props. You’ll get full IntelliSense and type safety when using the library in TypeScript projects.
Framework Compatibility
React Voice Visualizer works seamlessly with popular React frameworks and build tools:Vite
No additional configuration needed. The library works out of the box with Vite:Next.js
For Next.js 13+ with App Router, use client components:Since React Voice Visualizer uses browser APIs like
navigator.mediaDevices and MediaRecorder, it must be used in client-side components. Add the "use client" directive at the top of your component file in Next.js.Create React App
Works directly without any configuration:Browser Compatibility
React Voice Visualizer relies on modern browser APIs. Ensure your target browsers support:- Web Audio API: For audio processing and analysis
- MediaRecorder API: For audio recording
- getUserMedia API: For microphone access
- Canvas API: For waveform visualization
What’s Included
The library exports two main items:useVoiceVisualizer: A React hook that provides recorder controls and stateVoiceVisualizer: A React component that renders the audio visualizer
Next Steps
Quick Start Guide
Learn how to build your first audio visualizer in minutes

