Skip to main content

//clika-runtime/io.clika.runtime/AudioProcessor/process

process

[common]
fun process(path: String, options: AudioProcessOptions? = null, where: Placement? = null): Tensor

Decode an audio file and compute its features.

[common]
fun process(bytes: ByteArray, options: AudioProcessOptions? = null, where: Placement? = null): Tensor

Decode an encoded audio payload and compute its features.

[common]
fun process(waveform: FloatArray, sampleRate: Int, options: AudioProcessOptions? = null, where: Placement? = null): Tensor

Features of a decoded mono waveform at sampleRate, which must equal the configured rate.

[common]
fun process(waveform: Tensor, sampleRate: Int, options: AudioProcessOptions? = null, where: Placement? = null): Tensor

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