//clika-runtime/io.clika.runtime/AudioProcessor/Companion
Companion
[common]
object Companion
Functions
| Name | Summary |
|---|---|
| fromArgs | [common] fun fromArgs(samplingRate: Long? = null, featureSize: Long? = null, nFft: Long? = null, hopLength: Long? = null, where: Placement? = null): AudioProcessor Build a log-mel processor from the common knobs with no configuration file; a null knob takes its default (16 kHz, 80 mel bins, an FFT of 400 and a hop of 160 samples). |
| fromDirectory | [common] fun fromDirectory(path: String, where: Placement? = null): AudioProcessor Load from a model directory, detecting the preprocessor format present. |
| fromHuggingface | [common] fun fromHuggingface(path: String, where: Placement? = null): AudioProcessor Load a Hugging Face audio preprocessor ( preprocessor_config.json in a model directory, or the file itself). |