Combining wavplay and filepath not working ?

조회 수: 1 (최근 30일)
I Made
I Made 2013년 3월 29일
Can't we dynamically choose the file we wanted to play? i tried this :
[FileName,PathName] = uigetfile('*.wav','Select Audio File ');
wavplay(FileName,45040);
and i've tried :
[FileName,PathName] = uigetfile('*.wav','Select Audio File ');
FILE=fullfile(PathName, FileName);
wavplay(FILE,45040);
I got this following error: Input arguments must be real uint8, int16, single, or double-precision.
  댓글 수: 3
Walter Roberson
Walter Roberson 2013년 3월 29일
Is anything else able to play the file? 'RIFF' is very common in WAV files but it needs to be followed by binary 0 not by '0'
I Made
I Made 2013년 3월 30일
I think the header of all .wav file is RIFF, what do you mean by anything else able to play the file?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by