Info
此问题已关闭。 请重新打开它进行编辑或回答。
I want to read audio data from a file. Can anybody help me?
1 次查看(过去 30 天)
显示 更早的评论
I designed a gui for recording sound. I am recording them with special name and putting a file. Then I want to call these records from file whose name is 'test'. wavread file is getting error like 'Cannot open file.'. How can I add file to workspace?
if true
traindir = 'C:\Users\onur\Desktop\sesdosyası\gui2\test\';
file = sprintf('%s', traindir)
disp(file);
[s, fs] = wavread(file);
end
0 个评论
回答(1 个)
Mikhail
2014-11-5
You didn't set here the name of your file, it should be something like "test.wav"
1 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!