Companion

Properties

Link copied to clipboard
const val SAMPLE_RATE_16K: Int = 16000
Link copied to clipboard
const val SAMPLE_RATE_22K: Int = 22050
Link copied to clipboard
const val SAMPLE_RATE_44K: Int = 44100
Link copied to clipboard
const val SAMPLE_RATE_48K: Int = 48000
Link copied to clipboard
const val SAMPLE_RATE_8K: Int = 8000

Common sample rates.

Functions

Link copied to clipboard
fun <T : DType, V> fromTensor(tensor: Tensor<T, V>, sampleRate: Int, layout: ChannelLayout): Audio<T, V>

Create Audio from an existing tensor with explicit metadata.