audio compression (shorten an audio file)

조회 수: 2 (최근 30일)
a a
a a 2018년 12월 4일
댓글: a a 2018년 12월 10일
I want to compress an audio file to make it shorter to put in a game for sound effects. I use the following:
[y,Fs]=wavread('blast.wav');
t1=0;% start time
t2=2;% end time
yNew=y((Fs*t1+1):Fs*t2,1);
wavwrite(yNew,Fs,'soundShort.wav');
The compression is fine and 'soundShort.wav' can play. But command sound(wavread('soundShort.wav')) no longer has any sound, though it's runnable. I wonder what goes wrong.
  댓글 수: 13
Walter Roberson
Walter Roberson 2018년 12월 9일
http://pcauthorities.com/windows-xp/how-to-troubleshoot-sound-problems-in-windows-xp/
a a
a a 2018년 12월 10일
thank you. after reading it, i still don't know what went wrong for my winxp. on my winxp, 'beep' has a sound while 'sound(beep)' doesn't.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by