---
title: "Companion"
sidebar_label: "Companion"
description: "Kotlin binding reference: Companion."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../../index.md)/[io.clika.runtime](../../index.md)/[AudioProcessor](../index.md)/[Companion](index.md)

# Companion

[common]\
object [Companion](index.md)

## Functions

| Name | Summary |
|---|---|
| [fromArgs](fromArgs.md) | [common]<br>fun [fromArgs](fromArgs.md)(samplingRate: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)? = null, featureSize: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)? = null, nFft: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)? = null, hopLength: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)? = null, where: [Placement](../../Placement/index.md)? = null): [AudioProcessor](../index.md)<br>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](fromDirectory.md) | [common]<br>fun [fromDirectory](fromDirectory.md)(path: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), where: [Placement](../../Placement/index.md)? = null): [AudioProcessor](../index.md)<br>Load from a model directory, detecting the preprocessor format present. |
| [fromHuggingface](fromHuggingface.md) | [common]<br>fun [fromHuggingface](fromHuggingface.md)(path: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), where: [Placement](../../Placement/index.md)? = null): [AudioProcessor](../index.md)<br>Load a Hugging Face audio preprocessor (`preprocessor_config.json` in a model directory, or the file itself). |