Ports the silero v5 16k branch to pure rust (minimal onnx-protobuf weight extraction, hardcoded graph: stft-conv, 4x conv+relu, lstm cell, sigmoid head), 512-sample chunks with 64-sample carried context. Validated against onnxruntime to 2.3e-6 max diff (fixtures committed), ~425us/chunk release. Model loads from repo-root silero_vad.onnx or MAKEPAD_VAD_MODEL. vad-test bin for wav files. window_voice_input now gates packets on vad probability (0.5 enter / 0.35 exit) and falls back to the rms gate when the model file is missing — the log line says which gate is active. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
27 lines
545 B
TOML
27 lines
545 B
TOML
[package]
|
|
name = "makepad-voice"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Pure Rust CPU-only SIMD+threaded Whisper inference"
|
|
license = "MIT"
|
|
|
|
[features]
|
|
default = []
|
|
metal-precompile = []
|
|
|
|
[dependencies]
|
|
|
|
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
|
|
makepad-objc-sys = { path = "../objc-sys", version = "1.0.0" }
|
|
|
|
[[bin]]
|
|
name = "whisper-test"
|
|
path = "src/bin/whisper_test.rs"
|
|
|
|
[[bin]]
|
|
name = "vad-test"
|
|
path = "src/bin/vad_test.rs"
|
|
|
|
[[bin]]
|
|
name = "apple-speech-test"
|
|
path = "src/bin/apple_speech_test.rs"
|