facebook/wav2vec2-lv-60-espeak-cv-ft (Apache-2.0) as ONNX with per-channel int8 weights in the transformer layers. The convolutional feature encoder, the feature projection and the output layer stay float32. 359 MB instead of 1.26 GB.
Made for Accent Improver, which scores pronunciation in the browser
with onnxruntime-web. Converted from
onnx-community/wav2vec2-lv-60-espeak-cv-ft-ONNX
onnx/model.onnx by backend/scripts/quantize_onnx.py in that repository.
On 300 speechocean762 test recordings (4,536 phones), GOP scores from this model run with onnxruntime-web agree with expert ratings as well as the original PyTorch model (Pearson 0.429 vs 0.428); the median phone score changes by 0 points and 0.5% of phones change by more than 10 points (0-100 scale).
Input: input_values, float32 [batch, samples], 16 kHz audio normalized to zero mean and unit variance.
Output: logits, float32 [batch, frames, 392], one frame per 20 ms; tokens in vocab.json.