Scilab读取WAV文件失败并显示错误消息

时间:2019-02-20 07:48:41

标签: wav scilab

我尝试使用Scilab读取wav文件,并尝试绘制信号波形。

--> file = '/home/user/Documents/with1meg.wav'
--> [snd,Fs,bits]=wavread(file);Fs,bits

但是它给出了这样的错误消息:

  函数wavread的第70行的

(   /usr/share/scilab/modules/sound/macros/wavread.sci第85行)

     

wavread:发生错误:.wav文件不包含RIFF   标识符。

Audacity可以正常打开wav文件。

Audacity wav file

我提到的WAV文件可以下载here.

1 个答案:

答案 0 :(得分:0)

似乎存在与土耳其语区域设置有关的错误。要解决此问题,请使用此命令临时调用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=