feat(audio): add Apple CoreML Silero VAD
This commit is contained in:
@@ -102,7 +102,7 @@ pub enum VadBackend {
|
||||
|
||||
#[cfg(target_os = "ios")]
|
||||
fn default_vad_backend() -> VadBackend {
|
||||
VadBackend::WebrtcVad
|
||||
VadBackend::SileroOnnx
|
||||
}
|
||||
|
||||
#[cfg(not(target_os = "ios"))]
|
||||
@@ -252,9 +252,6 @@ mod tests {
|
||||
assert_eq!(config.aec, EffectOwner::Platform);
|
||||
assert_eq!(config.ns, EffectOwner::Platform);
|
||||
assert_eq!(config.agc, EffectOwner::Platform);
|
||||
#[cfg(target_os = "ios")]
|
||||
assert_eq!(config.vad_backend, VadBackend::WebrtcVad);
|
||||
#[cfg(not(target_os = "ios"))]
|
||||
assert_eq!(config.vad_backend, VadBackend::SileroOnnx);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user