powered by
Retrieve audio metadata.
torchaudio_info(filepath)
AudioMetaData: an R6 class with fields sample_rate, channels, samples.
(str) path to the audio file.
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