Learn R Programming

torchaudio (version 0.3.1)

torchaudio_info: Audio Information

Description

Retrieve audio metadata.

Usage

torchaudio_info(filepath)

Value

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

Arguments

filepath

(str) path to the audio file.

Examples

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

Run the code above in your browser using DataLab