audioread提供了一个简单的统一的函数,用于读取各种格式的声音文件,包括wav, mp3, aac, flac, AIFF, etc.
在大多数情况下,访问实际上是由外部提供的二进制文件,但这是隐藏在audioread(及其子功能)。这个想法是让你的代码独立的音频文件作为输入的类。
audioread - unified audio file input function
audioread provides a single, unified function for reading audio files in a range of different file formats, including wav, mp3, aac, flac, AIFF, etc. In most cases, access is actually provided by external binaries, but this is hidden within audioread (and its subfunctions). The idea is to make your code independent of the kind of audio files used as input.
In addition, audioread provides support for common modifications performed during sound input, namely resampling (changing the sampling rate), casting multi-channel signals to mono, and loading only a limited time range of the sound. Care has been taken to ensure that short subregions of very large soundfiles can be read with the minimum of memory overhead (for instance, without having to load in the entire soundfile at any time.
audioread.m audiowrite.m demo_audioread.m flacread.m flacwrite.m m4aread.m m4awrite.m mp3read.m mp3write.m wavread_downsamp.m