MATLAB onlineにて、s​ound関数を実行し​た際に音声が出力され​ません。

26 views (last 30 days)
2P
2P on 4 Nov 2022
Answered: Hernia Baby on 5 Nov 2022
Google Chrome環境にて、MATLAB onlineでsound関数を実行した際に音声が出力されません。
エラーコードには「オーディオ出力が見つかりませんでした。」と表示されるのですが、原因が分からず解決できません。
どなたか音声を出力する方法が分かる方がいれば御助力をお願いいたします。
ソースコードは以下の通りです。
Fs = 8000;, t=1/Fs:1/Fs:1;, f0=440;
x = 1.0*sin(2*pi*f0*t);
sound(x);
plot(t,x), axis([0 0.01 -1 1]);
xlabel("時間 t (s)")
ylabel("振幅")
またエラーコードは以下の通りです。
警告: オーディオ出力が見つかりませんでした。
> audiovideo.internal/audioplayerOnline/hasNoAudioHardware (行 491) 内
audiovideo.internal/audioplayerOnline/play (行 200) 内
audioplayer/play (行 349) 内
sound (行 77) 内
enshu1_1 (行 4) 内
Google Chromeのバージョンは下記の通りです。
バージョン: 107.0.5304.88(Official Build) (64 ビット)
初めての質問で失礼があるかもしれませんが、よろしくお願いします。

Answers (1)

Hernia Baby
Hernia Baby on 5 Nov 2022

Categories

Find more on Audio I/O and Waveform Generation in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!