flutter_voice_processor 1.0.3 copy "flutter_voice_processor: ^1.0.3" to clipboard
flutter_voice_processor: ^1.0.3 copied to clipboard

outdated

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();
18
likes
0
pub points
82%
popularity

Publisher

verified publisherpicovoice.ai

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

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_voice_processor