Help CenterHelp Center
Read all audio files from datastore
data = readall(ADS)
example
data = readall(ADS) reads all audio files from the datastore.
data
ADS
If all the data in the datastore does not fit in memory, then readall returns an error.
readall
collapse all
Specify the file path to the audio samples included with Audio Toolbox™. Create an audio datastore that points to the specified folder.
folder = fullfile(matlabroot,'toolbox','audio','samples'); ADS = audioDatastore(folder);
Read all the data in the datastore.
readall(ADS)
ans=34×1 cell array { 539648x1 double} { 320512x4 double} { 227497x1 double} { 8000x1 double} { 685056x1 double} { 882688x2 double} { 24000x1 double} { 175104x1 double} {1116288x2 double} {1215360x2 double} { 263304x16 double} { 100868x1 double} { 180224x1 double} { 32768x1 double} { 192150x1 double} { 100352x1 double} ⋮
audioDatastore
Specify ADS as an audioDatastore object.
All files in the audio datastore, returned as a cell array where each cell corresponds to a file.
audioDatastore | read
read
この例の変更されたバージョンがあります。編集された方の例を開きますか?
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office