flutter_voice_processor
1.1.2, released 2 years ago by picovoice.ai
An asynchronous audio capture library for real-time speech audio processing.
WASM-ready
What it does
Captures raw audio data from the device microphone and delivers 16-bit mono PCM frames to registered listeners. It is designed specifically for real-time speech processing use cases on mobile devices.
AI-written summary of version 1.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need real-time streaming of raw audio frames for speech processing or recognition.
- You want a singleton voice processor with support for multiple frame listeners.
Skip it when
- You want to record compressed audio files to disk (like MP3 or AAC).
- You need complex media playback features.
Strengths
- Delivers raw audio frames (16-bit, mono PCM) suitable for real-time speech engines.
- Supports multiple listeners on a single recording session.
Weaknesses
- Limited to raw PCM audio capture and specific configurations.
- Requires manual platform permission configuration for microphone access.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Requires adding NSMicrophoneUsageDescription in Info.plist for iOS and RECORD_AUDIO permission in AndroidManifest.xml for Android.
import 'package:flutter_voice_processor/flutter_voice_processor.dart';
VoiceProcessor? _voiceProcessor = VoiceProcessor.instance;
VoiceProcessorFrameListener frameListener = (List<int> frame) {
// use audio
};
_voiceProcessor?.addFrameListener(frameListener);
await _voiceProcessor?.start(512, 16000);Alternatives
Packages that do the same job and could replace flutter_voice_processor.
Works with
Packages commonly used together with flutter_voice_processor: ones it builds on, ones built on it, and its own family.