类似于这个问题Basic sound error in Matlab (with no answer),当我尝试播放声音(Matlab 2012a,Windows 7 64bit)时,使用sound
、soundsc
或audioplayer
,我得到一个错误:
>> load chirp.mat;
>> soundsc(y,Fs)
Error using sound (line 60)
Too many input arguments.
Error in soundsc (line 48)
sound(varargin{:})
我怀疑这是设备驱动程序问题,但这只是猜测。Matlab 似乎看到了音频设备:
>> devinfo = audiodevinfo;
>> devinfo.output.Name
ans =
Primary Sound Driver (Windows DirectSound)
ans =
Speakers (High Definition Audio Device):1 (Windows DirectSound)
ans =
Speakers (High Definition Audio Device):2 (Windows DirectSound)
有任何想法吗?