资源简介
g.726标准的adpcm的matlab实现,包含编码性能的测评

代码片段和文件信息
function [Isrdoutdqoutyoutaioutbiouttdouttroutalout] = ...
adpcm(sl N format);
%ADPCM Adaptive differential pulse code modulation.
% [I SR] = ADPCM( SL N) encodes the PCM coded input signal SL
% with N kbit/s adaptive differential pulse code modulation (ADPCM)
% where N is selected from 40 32 24 or 16 kbit/s.
% If N is not specified the bit rate is set to N = 32 kbit/s.
%
% By default the input signal SL is assumed to be represented with
% 14-bit signed-magnitude uniform PCM i.e. its amplitude range is
% -8191 <= sl <= 8191. This input format is also selected by
% ADPCM(SL N ‘lin‘). If the input signal is 8-bit logarithmic PCM
% (mu-law in accordance with LIN2MU) ADPCM( SL N ‘mu‘) has to
% be used.
%
% The first output is I the encoder output signal which represents
% the bit stream over the channel. The samples of I are from the
% discrete alphabet -2^(N/8-1) ... +2^(N/8-1). The second (optional)
% output is the reconstructed speech signal SR (scaled approximately
% between -8191 and +8191) which would be the output of the corres-
% ponding ADPCM decoder in the case of error-free transmission of I.
%
% If more than two outputs are specified a whole list of
% diagnostic outputs (internal variables of the algorithm) becomes
% available:
%
% [ISRDDQYAIBITDTRAL] = ADPCM( SL N);
%
% with the following interpretation:
%
% D prediction difference signal
% DQ quatized prediction difference signal
% Y scale factor for adaptive quantizer
% AI recursive predictor coefficients (2-column matrix)
% BI non-recursive predictor coefficients (6-column matrix)
% TD tone detector signal
% TR transient detector signal
% AL speed control for scale factor adaptation
%
% Note that this latter option is VERY memory intensive as all
% variables are vectors/matrices of the size of the input signal.
%
% This function uses also APUPDATE AIUPDATE BIUPDATE.
% The decoder is provided by I_ADPCM.
%
% References:
% The algorithm follows closely the ITU-T (former CCITT)
% recommendation G.726 “40 32 24 16 kbit/s Adaptive Differential
% Pulse Code Modulation (ADPCM)“. The recommendation specifies
% various fixed-point formats for the internal variables which are
% not simulated in this MATLAB implementation. However most of the
% variable names etc. are consistent with the recommendation.
% 1995-05-16 Martin Kummernecker
% 1995-08-30 Gernot Kubin (g.kubin@ieee.org)
% input argument checks default bit-rate and format setting
if (nargin < 1) | (nargin > 3)
disp(‘ADPCM: 1 to 3 input variables required!‘)
help adpcm return
end
if nargin == 1
N = 32;
disp(‘***** N = 32 kbit/s *****‘);
end
a = N==[40 32 24 16];
if (sum(a) ~= 1)
N = 32;
disp(‘***** N = 32 kbit/s *****‘);
end;
if nargin <= 2
format = ‘lin‘;
end;
if isstr(format) ~= 1
error(‘ADPCM: Input format must be string variable!‘)
elseif strcmp(format‘mu‘)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 113192 2010-03-11 20:13 speech_coding\speech_coding.pdf
文件 37 2010-03-11 20:17 speech_coding\readme.txt
文件 1071 2003-05-21 00:25 speech_coding\quality\mnru.m
文件 1194 2003-05-21 00:25 speech_coding\quality\segsnr.m
文件 149453 2002-05-27 17:21 speech_coding\quality\mos\amr_decoder.exe
文件 175747 2002-05-27 17:21 speech_coding\quality\mos\amr_encoder.exe
文件 10210 2002-05-27 13:25 speech_coding\quality\mos\amr_readme.txt
文件 769352 2002-05-27 17:21 speech_coding\quality\mos\cygwin1.dll
文件 4054 2003-05-27 09:29 speech_coding\quality\mos\encode_decode.asv
文件 4136 2003-05-27 09:43 speech_coding\quality\mos\encode_decode.m
文件 175601 2002-05-27 17:21 speech_coding\quality\mos\g722_decoder.exe
文件 176792 2002-05-27 17:21 speech_coding\quality\mos\g722_encoder.exe
文件 7121 2002-05-27 13:25 speech_coding\quality\mos\g722_readme.txt
文件 70144 2002-05-27 17:21 speech_coding\quality\mos\g729_decoder.exe
文件 110592 2002-05-27 17:21 speech_coding\quality\mos\g729_encoder.exe
文件 5632 2002-05-27 13:25 speech_coding\quality\mos\g729_readme.txt
文件 461 2001-08-20 16:30 speech_coding\quality\mos\speechin.m
文件 95744 2003-05-21 18:02 speech_coding\quality\mos\samples\f18.raw
文件 95744 2003-05-27 09:49 speech_coding\quality\mos\samples\f28.raw
文件 133118 2001-08-20 16:30 speech_coding\quality\mos\samples\f48.raw
文件 130208 2001-08-20 16:30 speech_coding\quality\mos\samples\f58.raw
文件 280692 2001-08-20 16:30 speech_coding\quality\mos\samples\f68.raw
文件 122880 2001-08-20 16:30 speech_coding\quality\mos\samples\f98.raw
文件 95744 2003-05-21 18:03 speech_coding\quality\mos\samples\m18.raw
文件 95744 2003-05-21 18:03 speech_coding\quality\mos\samples\m28.raw
文件 296564 2001-08-20 16:30 speech_coding\quality\mos\samples\m38.raw
文件 115440 2001-08-20 16:30 speech_coding\quality\mos\samples\m48.raw
文件 95744 2003-05-27 09:52 speech_coding\data\f18.raw
文件 95744 2003-05-27 09:52 speech_coding\data\f28.raw
文件 133118 2003-05-27 09:52 speech_coding\data\f48.raw
............此处省略50个文件信息
- 上一篇:稀疏编码算法
- 下一篇:Bursa_Wolf,布尔莎坐标转换matlab
相关资源
- matlab_OFDM调制解调(来自剑桥大学)
- Matlab路面裂缝识别69319
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
- 通过不同方法进行粗糙集属性约简m
评论
共有 条评论