资源简介
该文件经过试验可以获得上传文件的基频信息,个人可参考下载学习,希望对初学者有用
代码片段和文件信息
%% name: SunKangKang student number: 1228
clear variables; %deletes all variables in the workspace
close all; %closes all plots
clc; %clears the command window
%% E1 Computation of the autocorrelation function
[yFs] = audioread(‘dayu.wav‘);
max_time_lag=0.1;%set the maximum time shift of the signal(100ms)
r_ss = autocorrelation(y max_time_lag);
time_lag = linspace(0size(r_ss1)/Fs*1000size(r_ss1));
%Plot r_ss and display the time shift on the x-axis and the correlation on the y-axis.
figure
hold on
xlabel(‘time lag(ms)‘);
ylabel(‘r_s_s‘);
plot(time_lagr_ss);
hold off
%% E2 Determining the fundamental frequency
%find the maxima of acf by using the function sort()
%B sort the value of acf in increasing order I returns the corresponding index of value
[BI] = sort(r_ss);
num=size(I1)-1;
%The voiced speech of a typical adult male will have a fundamental frequency
%from 85 to 180 Hz and that of a typical adult female from 165 to 255 Hz.So the
%minimum period(interval) in sample between maxima should be approximately Fs/250=64. The
%next maximum should be after at least approximately 64 samples.
while (I(num)< I(end)+64)
num=num-1; %B sort the value of acf in increasing order
end
%Then we use the period in sample calculated from the first 2 maxima to
%estimate the position of other maxima. The possible position of next
%maximum = the position of previous maximum + period in sample. Next we
%search for the maxima a
- 上一篇:Robust ICP (matlab)
- 下一篇:PLLsimuli
nk仿真模型
相关资源
- Robust ICP (matlab)
- 均匀球体剖面重力异常正演模拟Matl
- 高阶邦加莱球及stokes参量 matlab模拟
- 监督分类最大似然法MATLAB.zip
- 求露点温度matlab程序
- 计算图像Spatial Frequence的Matlab程序SF
- 随机梯度下降算法的MATLAB实现
- MATLAB_FEM_ToolBox_examples
- 德州扑克获胜概率计算的MATLAB程序
- Ldpc编译码方案MATLAB仿真
- 印章识别matlab代码
- matlab神经网络实现数字识别
- CBIR-matlab
- Matlab演奏小幸运
- 连续潮流matlab代码
- 数字信号处理及MATLAB实现__第二版__学
- 线性拟合仿真-最小二乘法、正交回归
- 矩阵填充MATLAB代码
- 基于MATLAB的LTE系统的仿真
- 基于模型预测控制的车辆轨迹跟踪问
- 数模美赛常用模型算法matlab程序包+数
- 基于matlab的车牌识别资源整合16篇
- 悉尼大学SLAM实验数据MATLAB版
- 单机器人的多任务路径规划GUI
- 大型飞机航拍图处理matlab代码
- 数据融合matlab
- 强化学习代码,2016版,matlab
- LMS语音信号去噪matlab代码
- 遗传算法完整MATLAB程序实数法,轮盘
- 合成孔径雷达成像csChirp Scaling算法M
评论
共有 条评论