I want to read audio data from a file. Can anybody help me?
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
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일
0 개 추천
You didn't set here the name of your file, it should be something like "test.wav"
댓글 수: 1
Onur PEKER
2014년 11월 5일
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!