How to stop sound function from Audio toolbox?

조회 수: 8 (최근 30일)
Arkadiusz Pawelek
Arkadiusz Pawelek 2019년 12월 14일
댓글: Sujas 2022년 11월 29일
How can i turn off the audio sample loaded by audioread() and played by sound() function? Ctrl + C doesn't work. So far the only method I found is to close MatLAB.

채택된 답변

Brian Hemmat
Brian Hemmat 2019년 12월 15일
Calling "clear sound" will stop the playback.
>> [audio,fs] = audioread('Counting-16-44p1-mono-15secs.wav');
>> sound(audio,fs)
>> clear sound
  댓글 수: 1
Sujas
Sujas 2022년 11월 29일
Thanks a lot for this i used to close matlab everytime before knowing this.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by