<< audioinfo | Audio playback | audioplayer >> |
info = audiometadata(filename) |
info_previous = audiometadata(filename, info_new) |
a string: an valid audio filename.
a struct: new information about audio file to set.
a struct: information about audio file.
a struct: previous information about audio file.
audiometadata returns a structure with metadata of an audio file.
audiometadata manages all tags available in the audio file.
Many audio formats are supported as OGG, FLAC, WAV, RAW.
wav_file = [modulepath('audio'), '/examples/haha.wav'];
info = audiometadata(wav_file)
wav_file = [modulepath('audio'), '/examples/haha.wav'];
modified_wav_file = [tempdir(), 'haha_modified_tags.wav'];
if isfile(modified_wav_file)
rmfile(modified_wav_file);
end
copyfile(wav_file, modified_wav_file);
info = audiometadata(modified_wav_file)
info.artist = 'Nelson';
audiometadata(modified_wav_file, info);
info = audiometadata(modified_wav_file)
if isfile(modified_wav_file)
rmfile(modified_wav_file);
end
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET