voice_forge_speech 1.13.5+1 copy "voice_forge_speech: ^1.13.5+1" to clipboard
voice_forge_speech: ^1.13.5+1 copied to clipboard

Pure-Dart FFI bindings for sherpa-onnx (k2-fsa): Silero VAD, Whisper ASR, Piper TTS and more. Flutter-free, server-side build of the official sherpa_onnx Dart package (Apache-2.0).

example/voice_forge_speech_example.dart

import 'package:voice_forge_speech/voice_forge_speech.dart';

/// Minimal voice_forge_speech usage: initialize the native bindings and
/// create a Silero VAD. The native `libsherpa-onnx-c-api` library must be
/// loadable by the process (see the README; the voice_forge framework
/// downloads it automatically on first run).
Future<void> main() async {
  // One-time binding init (must run in every isolate that uses sherpa).
  initBindings();

  final vad = VoiceActivityDetector(
    config: VadModelConfig(
      sileroVad: SileroVadModelConfig(model: 'silero_vad.onnx'),
    ),
    bufferSizeInSeconds: 30,
  );

  print('VAD ready');
  vad.free();
}
0
likes
150
points
39
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Pure-Dart FFI bindings for sherpa-onnx (k2-fsa): Silero VAD, Whisper ASR, Piper TTS and more. Flutter-free, server-side build of the official sherpa_onnx Dart package (Apache-2.0).

Repository (GitHub)
View/report issues

Topics

#speech #asr #tts #vad #audio

License

Apache-2.0 (license)

Dependencies

ffi

More

Packages that depend on voice_forge_speech