声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 7602|回复: 2

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

[复制链接]
发表于 2005-11-16 19:04 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

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

回复
分享到:

使用道具 举报

发表于 2005-11-16 19:07 | 显示全部楼层

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

<P>help  wavwrite<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>[x, Fs, bits]  = wavread('a1.wav'); <BR>sound(x,Fs);<BR>wavwrite(x,Fs,bits,'123.wav');
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-5 18:59 , Processed in 0.050102 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表