flutter_voice_processor 1.0.1
flutter_voice_processor: ^1.0.1 copied to clipboard

Flutter Android iOS

A Flutter plugin that delivers audio buffers for real-time processing.

flutter-voice-processor #

A Flutter plugin for real-time voice processing.

Usage #

Create:

int frameLength = 512;
int sampleRate = 16000;
VoiceProcessor _voiceProcessor = VoiceProcessor.getVoiceProcessor(frameLength, sampleRate);
Function _removeListener = _voiceProcessor.addListener((buffer) {
    print("Listener received buffer of size ${buffer.length}!");
});

Start audio:

try {
    if (await _voiceProcessor.hasRecordAudioPermission()) {
        await _voiceProcessor.start();    
    } else {
        print("Recording permission not granted");
    }
} on PlatformException catch (ex) {
    print("Failed to start recorder: " + ex.toString());
}

Stop audio:

await _voiceProcessor.stop();
_removeListener();
0
likes
100
pub points
56%
popularity

Publisher

picovoice.ai

A Flutter plugin that delivers audio buffers for real-time processing.

Homepage

Documentation

API reference

License

Apache 2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_voice_processor