Skip to main content

dnsmos

Function dnsmos 

Source
pub fn dnsmos(signal: &[f32], weights: Option<&[u8]>) -> Result<f32, AudioError>
Expand description

Predict a DNSMOS quality score for signal.

  • signal: mono degraded audio (no reference needed).
  • weights: the trained DNSMOS model weights. None (or, currently, any value) means the learned backend is unavailable.

ยงFails closed

Returns AudioError::BackendUnavailable when weights is None. A learned MOS cannot be synthesised without the model, and fabricating one is forbidden. A future weights loader will replace the Some(_) arm; until then it too fails closed rather than returning a guessed MOS.