MATLABでの音声の停止方法 How can I stop music using matlab?

16 views (last 30 days)
MATLAB上で音声を再生、停止する手段として、audioplayerクラスを使用しています。
一時停止、停止する場合にはpause(obj)、stop(obj)を用いるのですが、これにはo.2秒ほどの処理時間を要します。
できれば、長くとも0.05秒ほどで音声の停止処理を行いたいのですが、他の音声停止方法、もしくは停止に要する処理時間を短くする方法はないでしょうか。 お知恵をお貸しください。
よろしくおねがいします。
  1 Comment
Atsushi Matsumoto
Atsushi Matsumoto on 21 Oct 2016
audioplayerの処理時間の測定はどうやって行われているのでしょうか?

Sign in to comment.

Accepted Answer

Atsushi Matsumoto
Atsushi Matsumoto on 21 Oct 2016
DSP System Toolboxをお持ちであれば、dsp.AudioFileReaderとdsp.AudioPlayerを使ってみてはいかがでしょうか?

More Answers (0)

Community Treasure Hunt

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

Start Hunting!