Learn R Programming

torchaudio (version 0.2.2)

mp3_info: MP3 Information

Description

Retrive metadata from mp3 without load the audio samples in memory.

Usage

mp3_info(filepath)

Value

AudioMetaData: sample_rate, channels, samples

Arguments

filepath

(chr) path to mp3 file

Examples

Run this code
mp3_path <- system.file("sample_audio_1.mp3", package = "torchaudio")
mp3_info(mp3_path)

Run the code above in your browser using DataLab