Skip to main content

check_opus_sample_rate

Function check_opus_sample_rate 

Source
pub(crate) fn check_opus_sample_rate(rate: u32) -> PyResult<()>
Expand description

Opus codecs only run at 8, 12, 16, 24 or 48 kHz; anything else would fail encoder or decoder creation on the worker, so it is rejected up front.