飞扬 发表于 2005-11-16 19:04

求wavwrite()这个函数的具体参数

播放声音的函数如下:<br>= wavread('a1.wav'); <br>sound(x,Fs);<br>但是保存文件的函数wavwrite()的具体参数是什么呢?
[此贴子已经被作者于2005-11-16 19:07:31编辑过]

glise 发表于 2005-11-16 19:07

回复:(飞扬)求wavwrite()这个函数的具体参数

<P>helpwavwrite<BR><BR> WAVWRITE Write Microsoft WAVE (".wav") sound file.<BR>    WAVWRITE(Y,FS,NBITS,WAVEFILE) writes data Y to a Windows WAVE<BR>    file specified by the file name WAVEFILE, with a sample rate<BR>    of FS Hz and with NBITS number of bits.NBITS must be 8, 16,<BR>    24, or 32.Stereo data should be specified as a matrix with two <BR>    columns. For NBITS &lt; 32, amplitude values outside the range <BR>    [-1,+1] are clipped.<BR> <BR>    WAVWRITE(Y,FS,WAVEFILE) assumes NBITS=16 bits.<BR>    WAVWRITE(Y,WAVEFILE) assumes NBITS=16 bits and FS=8000 Hz.<BR> <BR>    8-, 16-, and 24-bit files are type 1 integer PCM.32-bit files <BR>    are written as type 3 normalized floating point.<BR> <BR>    See also WAVREAD, AUWRITE.</P>

飞扬 发表于 2005-11-16 19:16

谢谢<BR>   现在能正常保存了!<BR>= wavread('a1.wav'); <BR>sound(x,Fs);<BR>wavwrite(x,Fs,bits,'123.wav');
页: [1]
查看完整版本: 求wavwrite()这个函数的具体参数