Scilab 读取 wav 文件失败并显示错误消息
Scilab read wav file fails with error message
我尝试用 Scilab 读取 wav 文件并尝试绘制信号波形。
--> file = '/home/user/Documents/with1meg.wav'
--> [snd,Fs,bits]=wavread(file);Fs,bits
但它会给出这样的错误消息:
at line 70 of function wavread (
/usr/share/scilab/modules/sound/macros/wavread.sci line 85 )
wavread: An error occurred: .wav file does not contain the RIFF
identifier.
Audacity 可以很好地打开 wav 文件。
我提到的wav文件可以下载here.
似乎存在与土耳其语言环境相关的错误。要解决此问题,请使用此命令暂时调用 scilab。
LC_CTYPE=en_US.UTF-8 ./scilab
我的系统环境变量是这样的:
$ locale
LANG=tr_TR.UTF-8
LANGUAGE=
LC_CTYPE="tr_TR.UTF-8"
LC_NUMERIC="tr_TR.UTF-8"
LC_TIME="tr_TR.UTF-8"
LC_COLLATE="tr_TR.UTF-8"
LC_MONETARY="tr_TR.UTF-8"
LC_MESSAGES="tr_TR.UTF-8"
LC_PAPER="tr_TR.UTF-8"
LC_NAME="tr_TR.UTF-8"
LC_ADDRESS="tr_TR.UTF-8"
LC_TELEPHONE="tr_TR.UTF-8"
LC_MEASUREMENT="tr_TR.UTF-8"
LC_IDENTIFICATION="tr_TR.UTF-8"
LC_ALL=
我尝试用 Scilab 读取 wav 文件并尝试绘制信号波形。
--> file = '/home/user/Documents/with1meg.wav'
--> [snd,Fs,bits]=wavread(file);Fs,bits
但它会给出这样的错误消息:
at line 70 of function wavread ( /usr/share/scilab/modules/sound/macros/wavread.sci line 85 )
wavread: An error occurred: .wav file does not contain the RIFF identifier.
Audacity 可以很好地打开 wav 文件。
我提到的wav文件可以下载here.
似乎存在与土耳其语言环境相关的错误。要解决此问题,请使用此命令暂时调用 scilab。
LC_CTYPE=en_US.UTF-8 ./scilab
我的系统环境变量是这样的:
$ locale
LANG=tr_TR.UTF-8
LANGUAGE=
LC_CTYPE="tr_TR.UTF-8"
LC_NUMERIC="tr_TR.UTF-8"
LC_TIME="tr_TR.UTF-8"
LC_COLLATE="tr_TR.UTF-8"
LC_MONETARY="tr_TR.UTF-8"
LC_MESSAGES="tr_TR.UTF-8"
LC_PAPER="tr_TR.UTF-8"
LC_NAME="tr_TR.UTF-8"
LC_ADDRESS="tr_TR.UTF-8"
LC_TELEPHONE="tr_TR.UTF-8"
LC_MEASUREMENT="tr_TR.UTF-8"
LC_IDENTIFICATION="tr_TR.UTF-8"
LC_ALL=