Views
No views yet
CoreMLBackend
(replaces only the NN forward; keeps the PyTorch STFT / ERB / deep-filter
post-processing intact).| Variant | PESQ | STOI | SI-SDR | Size |
|---|---|---|---|---|
| PyTorch FP32 (reference) | 2.900 | 0.947 | 18.19 | — |
| CoreML FP16 | 2.901 | 0.947 | 18.19 | 4.2 MB |
| CoreML INT8 (this repo) | 2.907 | 0.947 | 18.11 | 2.2 MB |
| Duration | Time | RTF |
|---|---|---|
| 5 s | 0.65 s | 0.13 |
| 10 s | 1.2 s | 0.12 |
| 20 s | 4.8 s | 0.24 |
| File | Size | Description |
|---|---|---|
DeepFilterNet3.mlmodelc | 2.2 MB | Pre-compiled CoreML model (runs on Neural Engine) |
auxiliary.npz | 126 KB | ERB filterbank, Vorbis window, normalization states |
Package.swift:.package(url: "https://github.com/soniqo/speech-swift", branch: "main")1import SpeechEnhancement
2
3let enhancer = try await SpeechEnhancer.fromPretrained()
4let clean = try enhancer.enhance(audio: noisyAudio, sampleRate: 48000)swift run audio denoise noisy.wav --output clean.wav