How to add .wav files?

9 次查看(过去 30 天)
studentmatlaber
studentmatlaber 2022-2-15
I want to load the .wav files inside the file. How can I do it? https://www.mathworks.com/help/audio/ref/audiodatastore.html I'm using here, but I couldn't do it, I would be very happy if you could help me. I can't use fullfile().
ADS = audioDatastore('D:\BİTİRME PROJESİ\TIMIT\data\TRAIN\DR1\FCJF0','FileExtensions','.wav')
  1 个评论
Cris LaPierre
Cris LaPierre 2022-2-16
Your syntax looks correct, so we need more details from you about what isn't working. Are you getting error messages? If so, please share the full message (all the red text). Otherwise, please give more details about why you couldn't do it, and why you couldn't use fullfile.
What happens if you move your wav files to a different location? Does if work if the files are on your desktop for example?

请先登录,再进行评论。

回答(1 个)

yanqi liu
yanqi liu 2022-2-16
yes,sir,may be use
ADS = audioDatastore('D:/BİTİRME PROJESİ/TIMIT/data/TRAIN/DR1','FileExtensions','.wav','IncludeSubfolders',true)
  2 个评论
Walter Roberson
Walter Roberson 2022-2-16
On Windows, you can use / or \ in file names (though I am not certain if you can use \\?/ or \??\ paths https://stackoverflow.com/questions/25090101/is-there-a-difference-between-and-paths )
IncludeSubfolders can make a meaningful difference, though.
Preeti Kuamari
Preeti Kuamari 2022-4-27
bring TRAIN folder in the current directory where you are working in matlab and then this might help.
ads = audioDatastore('TRAIN','IncludeSubfolders',true,'LabelSource','foldernames','FileExtensions','.wav');

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by