How to stop sound function from Audio toolbox?

31 views (last 30 days)
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.

Accepted Answer

Brian Hemmat
Brian Hemmat on 15 Dec 2019
Calling "clear sound" will stop the playback.
>> [audio,fs] = audioread('Counting-16-44p1-mono-15secs.wav');
>> sound(audio,fs)
>> clear sound
  1 Comment
Sujas
Sujas on 29 Nov 2022
Thanks a lot for this i used to close matlab everytime before knowing this.

Sign in to comment.

More Answers (0)

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!