欢迎来到天天文库
浏览记录
ID:25125032
大小:72.68 KB
页数:6页
时间:2018-11-18
《各种wave文件头格式》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、表1 8KHz采样、16比特量化的线性PCM语音信号的WAVE文件头格式表(共44字节)偏移地址字节数数据类型内容文件头定义为00H4char"RIFF"charriff_id[4]="RIFF"04H4longint文件总长-8longintsize0=文总长-808H8char"WAVEfmt"charwave_fmt[8]10H4longint10000000H(PCM)longintsize1=0x1014H2int0100Hintfmttag=0x0116H2intintchannel=1或
2、218H4longint采样率longintsamplespersec1CH4longint每秒播放字节数longintbytepersec20H2int采样一次占字节数intblockalign=声道数*量化数/822H2int量化数intbitpersamples=8或1624H4char"data"chardata_id="data"28H4longint采样数据字节数longintsize2=文长-442CH到文尾char采样数据 表2 8KHz采样、8比特A律量化的PCM语音信号的WAVE文
3、件头格式表(共58字节)偏移地址字节数数据类型内容文件头定义为00H4char"RIFF"charriff_id[4]="RIFF"04H4longint文件总长-8longintsize0=文总长-808H8char"WAVEfmt"charwave_fmt[8]10H4longint12000000H(ALAW)longintsize1=0x1214H2int0600Hintfmttag=0x0616H2int声道数intchannel=1或218H4longint采样率longintsample
4、spersec1CH4longint每秒播放字节数longintbytepersec20H2int采样一次占字节数intblockalign=0x0122H4longint量化数longintbitpersamples=826H4char"fact"charwave_fact="fact"2AH8char0400000000530700H定chartemp32H4char"data"charwave_data="data"36H4longint采样数据字节数lontintsize2=文长-58表3 8
5、KHz采样、8比特U律量化的PCM语音信号的WAVE文件头格式表(共58字节)偏移地址字节数数据类型内容文件头定义为00H4char"RIFF"charriff_id[4]="RIFF"04H4longint文件总长-8longintsize0=文总长-808H8char"WAVEfmt"charwave_fmt[8]10H4longint12000000H(ULAW)longintsize1=0x1214H2int0700Hintfmttag=0x0716H2int声道数intchannel=1或2
6、18H4longint采样率longintsamplespersec1CH4longint每秒播放字节数longintbytepersec20H2int采样一次占字节数intblockalign=0x0122H4longint量化数longintbitpersamples=826H4char"fact"charwave_fact="fact"2AH8char0400000000530700H定chartemp32H4char"data"charwave_data="data"36H4longint采样
7、数据字节数lontintsize2=文长-58表4 ADPCM语音编码后的WAVE文件头格式表(共90字节)偏移地址字节数数据类型内容文件头定义为00H4char"RIFF"charriff_id[4]="RIFF"04H4longint文件总长-8longintsize0=文总长-808H8char"WAVEfmt"charwave_fmt[8]10H4longint32000000H(ADPCM)longintsize1=0x3214H2int0200Hintfmttag=0x0216H2int声
8、道数intchannel=1或218H4longint采样率longintsamplespersec1CH4longint每秒播放字节数longintbytepersec20H2int采样一次占字节数intblockalign=声道数*量化数/822H2int量化数intbitpersamples=424H34char固定字节chartemp146H4char"fact"charwave_fact="fact"4AH8char04000000049306
此文档下载收益归作者所有