LocalVQE v1.4-AEC
Trang Soniqo này ghi lại LocalVQE v1.4-AEC theo triển khai hiện có trong speech-swift. Liên kết Hugging Face nằm bên dưới phần ghi chú tích hợp.
Ưu tiên trang nội bộ
Thẻ trên trang chính và menu tài liệu trỏ vào đây trước; liên kết model nguồn và bundle vẫn có trong trang này.
Tổng quan
| Model | LocalVQE v1.4-AEC |
|---|---|
| Vai trò | Explicit-reference acoustic echo cancellation |
| Backend | Native C++ adaptive filter plus stateful Core ML residual mask |
| Đầu ra | 16 kHz mono Float32 clean-microphone PCM |
| Ngôn ngữ | Language-independent acoustic processing |
| Giấy phép | Apache-2.0 code and weights |
| Trạng thái | Streaming and complete-clip speech-swift runtime |
| Nguồn | LocalVQE |
| Sản phẩm Swift | SpeechEnhancement |
| CLI / runtime | Programmatic LocalVQEEchoCanceller runtime |
Cách dùng
Đoạn dưới đây khớp với API hoặc lệnh hiện tại do speech-swift cung cấp.
import SpeechEnhancement
let aec = try await LocalVQEEchoCanceller.fromPretrained()
let cleanMicrophone = try aec.processFrame(
microphone: microphoneFrame,
reference: playbackReferenceFrame
)
Liên kết model
Ghi chú triển khai
- Microphone and playback reference are separate, synchronized inputs; a mixed system-audio transcript is not a valid reference.
- Streaming accepts exactly 256 mono samples per input at 16 kHz and adds one 16 ms spectral hop of algorithmic latency.
- Reset after dropped frames, device changes, capture restarts, or recording boundaries so stale filter and neural state cannot cross discontinuities.
- A silent reference preserves microphone-only speech; the runtime never falls back to subtracting a mix or muting the microphone.
- Do not blindly cascade this path with Apple Voice Processing I/O because two adaptive cancellers can distort near-end speech.