matlab readwav,Matlab用viocebox中readwav函数读wav格式文件出问题,求人解决~

谢谢楼上两位

我用wavread读不了那个wav文件,参数我刚才也设置了,还是读不了;

我在网上下载了语音处理工具箱viocebox,用里面的readwav函数就能读了,但读出来的数据限幅了,

在matlab里help readwav后是这样的:

>> help readwav

READWAV  Read a .WAV format sound file [Y,FS,WMODE,FIDX]=(FILENAME,MODE,NMAX,NSKIP)

Input Parameters:

FILENAME gives the name of the file (with optional .WAV extension) or alternatively

can be the FIDX output from a previous call to READWAV

MODE                specifies the following (*=default):

Scaling: 's'    Auto scale to make data peak = +-1

'r'    Raw unscaled data (integer values)

'q'    Scaled to make 0dBm0 be unity mean square

'p' *        Scaled to make +-1 equal full scale

Offset: 'y' *        Correct for offset in <=8 bit PCM data

'z'    No offset correction

File I/O: 'f'    Do not close file on exit

NMAX     maximum number of samples to read (or -1 for unlimited [default])

NSKIP    number of samples to skip from start of file

(or -1 to continue from previous read when FIDX is given instead of FILENAME [default])

Output Parameters:

Y        data matrix of dimension (samples,channels)

FS       sample frequency in Hz

WMODE    mode string needed for WRITEWAV to recreate the data file

FIDX     Information row vector containing the element listed below.

(1)  file id

(2)  current position in file

(3)  dataoff        byte offset in file to start of data

(4)  nsamp        number of samples

(5)  nchan        number of channels

(6)  nbyte        bytes per data value

(7)  bits        number of bits of precision

(8)  code        Data format: 1=PCM, 2=ADPCM, 6=A-law, 7=Mu-law

(9)  fs        sample frequency

If no output parameters are specified, header information will be printed.

For stereo data, y(:,1) is the left channel and y(:,2) the right

See also writewav.

上面英文不是很懂,请问参数应该怎么设置。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值