谢谢楼上两位
我用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.
上面英文不是很懂,请问参数应该怎么设置。