필터 지우기
필터 지우기

problem with wavread (.wma and .wav file)

조회 수: 6 (최근 30일)
shahnaz fatima
shahnaz fatima 2015년 4월 4일
답변: Geoff Hayes 2015년 4월 4일
i have put a file named a1.wav in my current working directory.
then i wrote the command in the command line like this:
[y,fs,nbits]=wavread('a1.wav')
but it is giving me error.
error using wavread, not a wave file.
i dont understand the problem.
i had problem creating wav file. when i recorded it was in .wma then i went to cmd and saved as .wav is this creating problem??
then how should i record to get directly into .wav format.
looking for the answers.
thank you

답변 (1개)

Geoff Hayes
Geoff Hayes 2015년 4월 4일
Shahnaz - you can't just change the extension of the wma file to wav and expect to be able to read the file as if it were a wav file using wavread...so the error message makes sense. I was about to suggest that you use the audioread function to read the wma file instead, but it does not seem to support audio files with this extension. Try converting this audio file from the wma format to wav using software outside of MATLAB.

카테고리

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