aic-sdk = "=0.24.0". Core SDK: 0.24.0. Source: released crate. Signatures are declarations; import the named types from aic_sdk. See the Rust guide for a complete runnable program.
Vad
Drop, Send and Sync; borrowed model bytes must outlive the detector. Mutable access serializes processing and initialization.
Vad::new
ModelTypeUnsupported. Credentials are an SDK key or JWT.
Vad::with_otel_config
Internal.
Vad::with_config
Vad::initialize
AudioConfigUnsupported. This allocates; run it outside the audio callback. Reinitialize successfully after any failed reconfiguration.
Vad::process
NotInitialized, AudioConfigMismatch and ProcessingNotAllowed. Read predictions after successful processing.
Vad::context
Vad::terminate_session
VadContext
Vad::context or awaited VadAsync::context. Implements Drop, Send and Sync; no public constructor. It permits cross-thread prediction reads and parameter control while the detector processes elsewhere. Predictions stop updating when audio is no longer processed.
VadContext::is_speech_detected
prediction_delay() samples; do not treat a stale decision as a new inference.
VadContext::raw_vad_probability
VadContext::set_parameter
ParameterOutOfRange. Effective transitions are quantized to model frames.
VadContext::parameter
VadContext::prediction_delay
VadContext::reset
VadContext::update_bearer_token
TokenUpdateUnsupported. Embedded NUL returns LicenseFormatInvalid. Local success does not prove backend acceptance; keep handling processing errors.
VadParameter
Debug, Clone, Copy, PartialEq, Eq and Hash, plus native parameter conversion. Read defaults from the active context.
VadParameter::SpeechHoldDuration
2 * duration history was above threshold.
VadParameter::Sensitivity
VadParameter::MinimumSpeechDuration
VadAsync
async. Uses the same shared worker pool and per-instance mutex as async enhancement. Constructors are synchronous, model data must be static, and async operations should be awaited in stream order. The type is Send and Sync; share through Arc when needed.
VadAsync::new
Vad::new.
VadAsync::with_otel_config
VadAsync::with_config
VadAsync::initialize
Vad::initialize.
VadAsync::process
None result; input length and errors match Vad::process.