资源简介
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
相关资源
- Bursa_Wolf,布尔莎坐标转换matlab
- MATLAB与机器学习
- 波束赋形——matlab程序
- 随机信号处理功率谱估计MATLAB程序及
- 支持向量机的matlab实现及相应Demo
- RGB 、YUV、YIQ 和 YCrCb颜色空间转换的
- 离散点云三维重建matlab程序
- 纹理图像分割Matlab源代码 PDF PPT
- libsvm - 支持多类别分类的svm工具箱m
- matlab实现三维点云三角化
- EMD HHT Matlab 信号分析,Google英文原版
- matlab GUI制作的播放器
- SIFT特征匹配 MATLAB 实现
- 图像分块BCS稀疏表示与重建
- K均值聚类算法,图像处理,GUI,mat
- MATLAB在卡尔曼滤波器中应用的理论与
- 智能控制及matlab仿真实验知道
- 经典SVM算法的MATLAB程序
- FASTICA盲源信号分离代码Matlab
-
simuli
nk和pspice的接口程序 - 《全面详解LTE:MATLAB建模、仿真与实
- KPCA matlab实现
- matlab实现视频动态物体检测与追踪
- 基于变分水平集的图像分割
- stk-matlab connectors 1.0.4
- Marine Systems Simulator(gnc)
- matlab和ansys振动仿真
- Qt 5.9 与 matlab 2017b 混合编程基本流程
- 802.11n信道模型
- cordic算法的matlab仿真和verilog的实现
评论
共有 条评论