AudioPcm

A stretch of a video's sound as 16 kHz mono floats in -1, 1, what speech models take: decoded by the phone's audio decoder, channels averaged, resampled linearly.

Properties

Link copied to clipboard
const val Rate: Int

Functions

Link copied to clipboard
fun read(context: Context, uri: Uri, fromMs: Long, lengthMs: Long): FloatArray

fromMs to fromMs + lengthMs; empty if the video has no sound.