GSM_full_rate

所属分类:语音合成
开发工具:Visual C++
文件大小:280KB
下载次数:40
上传日期:2010-10-29 21:54:49
上 传 者luyuan81
说明:  长期预测(LTP)与规则脉冲激励(RPE),而全速率编解码器就被称为RPE-LTP线性预测编码器。 输入至RPE-LTP编码器的数据为包括160个采样值的20ms语音,每一个采样值都拥有13位精度。数据首先通过预加重滤波器来提高信号的高频分量,以获得更好的传输效率。滤波器一般还消除信号上的任何偏移以简化进一步的计算。 正如前面所提到的,语音产生模型可看成是空气通过一组不同大小的圆柱体。短期分析级采用自动相关来计算与模型所用的8个圆柱体有关的8个反射系数,同时采用一种称为Schur递归的技术来有效地求解所得到的方程组。参数被变换成可以更少的位数来进行更佳量化的LAR(log-area ratio)。这些是传输流的前8个参数。 然后再将编码后的LAR解码成系数,并用来对输入采样值进行滤波。解码LAR的原因是为了确保编码器使用解码器上的相同信息来进行滤波。这一级上的其余采样值用于编解码器的LTP级。
(this is code about RPE-LTP voice code algorithm)

文件列表:
GSM全速率语音编码的源代码\AGC.C (4871, 1996-06-26)
GSM全速率语音编码的源代码\AUTOCORR.C (2678, 1996-06-26)
GSM全速率语音编码的源代码\AZ_LSP.C (8973, 1996-06-26)
GSM全速率语音编码的源代码\BASIC_OP.H (3780, 1996-06-26)
GSM全速率语音编码的源代码\BASICOP2.C (108072, 1996-06-26)
GSM全速率语音编码的源代码\BITS2PRM.C (3253, 1996-06-26)
GSM全速率语音编码的源代码\C1035PF.C (34569, 1996-06-26)
GSM全速率语音编码的源代码\CNST.H (1444, 1996-06-26)
GSM全速率语音编码的源代码\COD_12K2.C (28729, 1996-06-26)
GSM全速率语音编码的源代码\CODEC.H (9249, 1996-06-26)
GSM全速率语音编码的源代码\CODER.C (6182, 1996-06-26)
GSM全速率语音编码的源代码\CODER.RSP (509, 1996-06-26)
GSM全速率语音编码的源代码\CONVOLVE.C (1264, 1996-06-26)
GSM全速率语音编码的源代码\COPY.C (605, 1996-06-26)
GSM全速率语音编码的源代码\COUNT.C (3042, 1996-06-26)
GSM全速率语音编码的源代码\COUNT.H (1640, 1996-06-26)
GSM全速率语音编码的源代码\D_GAINS.C (16672, 1996-06-26)
GSM全速率语音编码的源代码\D_HOMING.C (11801, 1996-06-26)
GSM全速率语音编码的源代码\D_HOMING.H (537, 1996-06-26)
GSM全速率语音编码的源代码\D_PLSF_5.C (9659, 1996-06-26)
GSM全速率语音编码的源代码\D1035PF.C (2416, 1996-06-26)
GSM全速率语音编码的源代码\DEC_12K2.C (13361, 1996-06-26)
GSM全速率语音编码的源代码\DEC_LAG6.C (3866, 1996-06-26)
GSM全速率语音编码的源代码\DECODER.C (7031, 1996-06-26)
GSM全速率语音编码的源代码\DECODER.RSP (382, 1996-06-26)
GSM全速率语音编码的源代码\DTX.C (42295, 1996-06-26)
GSM全速率语音编码的源代码\DTX.H (3462, 1996-06-26)
GSM全速率语音编码的源代码\E_HOMING.C (4490, 1996-06-26)
GSM全速率语音编码的源代码\E_HOMING.H (502, 1996-06-26)
GSM全速率语音编码的源代码\ED_IFACE.C (9182, 1996-06-26)
GSM全速率语音编码的源代码\ENC_LAG6.C (3507, 1996-06-26)
GSM全速率语音编码的源代码\G_CODE.C (2006, 1996-06-26)
GSM全速率语音编码的源代码\G_PITCH.C (3481, 1996-06-26)
GSM全速率语音编码的源代码\GAINS_TB.H (720, 1996-06-26)
GSM全速率语音编码的源代码\GRID.TAB (1172, 1996-06-26)
GSM全速率语音编码的源代码\INT_LPC.C (3867, 1996-06-26)
GSM全速率语音编码的源代码\INTER_6.C (1524, 1996-06-26)
GSM全速率语音编码的源代码\INV_SQRT.C (2091, 1996-06-26)
GSM全速率语音编码的源代码\INV_SQRT.TAB (585, 1996-06-26)
GSM全速率语音编码的源代码\LAG_WIND.C (996, 1996-06-26)
... ...

/************************************************************************ European digital cellular telecommunications system 12200 bits/s speech codec for enhanced full rate speech traffic channels Bit-Exact C Simulation Code Version 5.1.0 June 26, 1996 *************************************************************************/ These files represent the Enhanced Full Rate GSM Speech Coder Bit Exact C simulation. All code is written in ANSI-C. The system is implemented as three separate programs: coder speech encoder ed_iface encoder/decoder interface decoder speech decoder For encoding using the coder program, the input is a binary speech file (*.inp) and the output is a binary encoded parameter file (*.cod). For decoding using the decoder program, the input is a binary parameter file (*.dec) and the output is a binary synthesized speech file (*.out). Note that the format for the parameter input file required for decoding (*.dec) is not the same as the format of the parameter file generated by encoding (*.cod). The "ed_iface" program will translate an *.cod file into an *.dec file. The complete package consists of one DS-HD 3.5" disk, formatted for MS-DOS operating system. The disk contains all of the files in the root level. FILE FORMATS: ============= File formats are important in the installation process. If a text file such as the makefile or a table is in the wrong format, the program will either not compile, or give incorrect results. Most of the data on this disk are in "pc" format. The text files are intended to be read only by the pc. The binary data files named spch_dos.* are byte ordered such that they will be read correctly by a pc. Those binary data files named spch_unx.* are byte ordered such that they will be read correctly by most UNIX systems. If the software is to be run on some other platform than PC, such as an HP (HP-UX) or a Sun, then some files will need to be modified before compilation and execution. The necessary modifications are described for the HP (HP-UX) and Sun platforms below. There is more information below on file formats. INSTALLING THE SOFTWARE ======================= Installing the software on the Sun: ----------------------------------- 1. Getting files from pc disk: There are two ways of extracting the files off of the disk: a. Using FTP b. Mounting the disks and copying the files directly. All of the files should be copied to the same directory. If using FTP: First copy files *.c, *.h, *.tab, *.txt, ts_unx.bat and makefile.* using the default (i.e. not binary) transfer mode. Second copy files spch_unx.* using the binary mode (by typing bin). Copying files *.c, *.h, *.tab, *.txt, ts_unx.bat and makefile.* with the default mode will automatically convert all text files to the Sun's file format. If copying the files directly: No special instructions. Be aware though that the text files on the Sun will still be in "pc" format. 2. Before you make: It is assumed that on the Sun the compiler is "cc". If this is not the case modify the symbols: CC = cc LFLAG = CFLAGS = -Xa -DWMOPS=1 to appropriate settings in makefile.sun. Note that for GCC compiler, a separate makefile "makefile.gcc" is provided. 3. Make: to make type: make -f makefile.sun or copy file "makefile.sun" to file "makefile" and make: cp makefile.sun makefile make Installing the software on the HP (HP-UX): ------------------------------------------ 1. Getting files from pc disk: There are two ways of extracting the files off of the disk: a. Using FTP b. Mounting the disks and copying the files directly. All of the files should be copied to the same directory. If using FTP: First copy files *.c, *.h, *.tab, *.txt, ts_unx.bat and makefile.* using the default (i.e. not binary) transfer mode. Second copy files spch_unx.* using the binary mode (by typing bin). Copying files *.c, *.h, *.tab, *.txt, ts_unx.bat and makefile.hp with the default mode will automatically convert all text files to the HP's file format. If copying the files directly: No special instructions. Be aware though that the text files on the HP will still be in "pc" format. 2. Before you make: It is assumed that on the HP the compiler is "cc". If this is not the case modify the symbols: CC = cc LFLAG = CFLAGS = -Aa -DWMOPS=1 to appropriate settings in makefile.hp. Note that for GCC compiler, a separate makefile "makefile.gcc" is provided. 3. Make: to make type: make -f makefile.hp or copy file "makefile.hp" to file "makefile" and make: cp makefile.hp makefile make Installing the software on the PC: ---------------------------------- 1. Getting files from pc disk: From the directory where you want the files installed (and assuming the diskette is in drive a), type: copy a:\*.* . 2. Before you make: It is assumed that on the PC the compiler is "bcc". If this is not the case modify the symbols: CC = bcc LFLAG = -ml -N CFLAGS = -w -N -ml -DWMOPS=1 to appropriate settings in makefile.pc. Note that for GCC compiler, a separate makefile "makefile.gcc" is provided. 3. Make: to make type: make -f makefile.pc or copy file "makefile.pc" to file "makefile" and make: copy makefile.pc makefile make More installation information: ------------------------------ When executed, coder and decoder programs display information about each frame, such as the frame number, total Weighted MOPS (WMOPS) computational complexity of the encoder or decoder for that frame, the average WMOPS figure for the frames processed, the observed worst case WMOPS figure and the observed "worst worst case" figure of the encoder or decoder for the current frame. The "worst worst case" figure is the total worst case WMOPS figure of all subroutines. During execution, each sub-routine returns its worst case complexity figure. At the end of processing, the "worst worst case" figure gives the total of the worst case WMOPS figures of all of the subroutines. To switch off the WMOPS display of the codec, set the compile-time switch "WMOPS" to value 0 in the make file you are using. Note that when DTX is activated, the worst worst case printout is suppressed, since it would not give meaningful figures in that case. RUNNING THE SOFTWARE ==================== The usage of the "coder" program is as follows: Usage: coder speech_file bitstream_file Note that running the "coder" program without any command line arguments will cause it to print out the above Usage message. The DTX is activated by typing the optional switch "dtx". By default, the DTX is not active. The usage of the "decoder" program is as follows: Usage: decoder bitstream_file synth_file Note that running the "coder" program without any command line arguments will cause it to print out the above Usage message. The usage of the "ed_iface" program is as follows: Usage: ed_iface input output Note that running the "ed_iface" program without any command line arguments will cause it to print out the above Usage message. Processing the installation verification files on the Sun or HP: ---------------------------------------------------------------- 1. Give the installation verification batch file "ts_unx.bat" execute permission by typing: chmod +x ts_unx.bat 2. Run this file by typing: ts_unx.bat The compare commands at the end of this file should yield no differences. Listing of file ts_unx.bat: =========================== coder spch_unx.inp spchtst.cod ed_iface spchtst.cod spchtst.dec decoder spchtst.dec spchtst.out cmp spchtst.cod spch_unx.cod cmp spchtst.dec spch_unx.dec cmp spchtst.out spch_unx.out Processing the installation verification files on the PC: --------------------------------------------------------- 1. Run the PC installation verification file ts_dos.bat by typing: ts_dos.bat The compare commands at the end of this file should yield no differences. Listing of file ts_dos.bat: =========================== coder spch_dos.inp spchtst.cod ed_iface spchtst.cod spchtst.dec decoder spchtst.dec spchtst.out fc /b spchtst.cod spch_dos.cod fc /b spchtst.dec spch_dos.dec fc /b spchtst.out spch_dos.out More file format information: ----------------------------- The file format of the supplied binary data (*.inp, *.cod, *.dec, and *.out) and the resulting speech encoded parameter data is 16-bit binary data which is read and written in 16 bit words. The data is therefore platform DEPENDENT. This is advantageous since no data conditioning is required to run files already present on the target platform. The files contain only data, i.e., there is no header.

近期下载者

相关文件


收藏者