torchaudio_info: Audio Information

View source: R/backend-common.R

torchaudio_infoR Documentation

Audio Information

Description

Retrieve audio metadata.

Usage

torchaudio_info(filepath)

Arguments

filepath

(str) path to the audio file.

Value

AudioMetaData: an R6 class with fields sample_rate, channels, samples.

Examples

path <- system.file("waves_yesno/1_1_0_1_1_0_1_1.wav", package = "torchaudio")
torchaudio_info(path)


curso-r/torchaudio documentation built on May 4, 2023, 2:27 a.m.