【发布时间】:2011-04-15 11:44:21
【问题描述】:
好的,我在开始使用这个时遇到了问题。我正在尝试在 Octave 中使用soundsc 函数,但我不断收到此错误:
error: sound.m: No command line utility found for sound playing
我在网上搜索了一些,但找不到该怎么做。这是我在网上找到的包含错误的文件的源代码的链接:http://octave-audio.sourcearchive.com/documentation/1.1.3/sound_8m-source.html
我认为的错误来自这里:
## What do we use for playing?
global sound_play_utility;
if ~isempty(sound_play_utility),
## User specified command
elseif (file_in_path(EXEC_PATH, "ofsndplay"))
## Mac
sound_play_utility = "ofsndplay -"
elseif (file_in_path(EXEC_PATH, "play"))
## Linux (sox)
sound_play_utility = "play -t AU -";
else
error("sound.m: No command line utility found for sound playing");
endif
我恰好使用的是 Windows 7,所以我想我必须以某种方式指定路径?更改源代码?我不知道我该怎么做才能让它工作!谁能告诉我?
【问题讨论】:
标签: octave