Model Loader
Android implementation of ModelLoader.
Loads models from downloaded files via ModelDownloader. After VT.initialize(), models are downloaded in background and loaded on demand.
Platform-specific model loader.
Provides access to bundled ONNX models for VAD and pitch detection. Method names align with public VADBackend enum values.
iOS implementation of ModelLoader.
Loads models from downloaded files via ModelDownloader. After VT.initialize(), models are downloaded in background and loaded on demand.
JVM implementation of ModelLoader.
Mirrors the Android implementation, but JVM-native: there is no Android Context, so the backing models directory is resolved by ModelDownloader under <user.home>/.voxatrace/models.
has* checks return false (rather than throwing) when a model file is absent, so callers can degrade gracefully. load* delegates to ModelDownloader.awaitModel, which downloads on demand if needed.
Functions
Check if Singing Realtime VAD model is available.
Check if Speech VAD model is available.
Check if SwiftF0 model is available.
Load the Singing Realtime VAD model (SwiftF0). Use with VADBackend.SINGING_REALTIME.
Load the Speech VAD model (Silero). Use with VADBackend.SPEECH.
Load the SwiftF0 pitch detection model. Use with PitchDetection for pitch detection.