- 题目要求
编程实现一句话语音的短时能量曲线,并比较窗长、窗口形状(以矩形窗和哈明窗为例)对短时平均能量的影响。 - 常见问题
1.未定义与 ‘double’ 类型的输入参数相对应的函数 ‘enframe’
解决办法:下载MATLAB voicebox工具包
function varargout=enframe(varargin)
%
% For calling details please see v_enframe.m
%
% This dummy routine is included for backward compatibility only
% and will be removed in a future release of voicebox. Please use
% v_enframe.m in future and/or update with v_voicebox_update.m
%
% Copyright (C) Mike Brookes 2018
% Version: $Id: enframe.m 10863 2018-09-21 15:39:23Z dmb $
%
if nargout
varargout=cell(1,nargout);
[varargout{:}]=v_enframe(varargin{:});
else
v_enframe(varargin{:});
end
e’ 类型的输入参数相对应的函数 ‘frame2time’
可在MATLAB toolbox\voicebox文件夹中添加frame2time.m文件
function frameTime=frame2time(frameNum,framelen,inc,fs)
% ================= 计算