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

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

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

# process

[common]\
fun [process](process.md)(path: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), options: [AudioProcessOptions](../AudioProcessOptions/index.md)? = null, where: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

Decode an audio file and compute its features.

[common]\
fun [process](process.md)(bytes: [ByteArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html), options: [AudioProcessOptions](../AudioProcessOptions/index.md)? = null, where: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

Decode an encoded audio payload and compute its features.

[common]\
fun [process](process.md)(waveform: [FloatArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html), sampleRate: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html), options: [AudioProcessOptions](../AudioProcessOptions/index.md)? = null, where: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

Features of a decoded mono waveform at [sampleRate](process.md), which must equal the configured rate.

[common]\
fun [process](process.md)(waveform: [Tensor](../Tensor/index.md), sampleRate: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html), options: [AudioProcessOptions](../AudioProcessOptions/index.md)? = null, where: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

Features of a decoded mono waveform tensor (`[N]` or `[1, N]` Float32) at [sampleRate](process.md).