概述
总共有四个函数分别如下,导入采集到的音频文件,设置好代码读取路径就可以实现了。
第一个函数:采集系统
% In this program, the signals are divided in pieces of lengData samples
% and process separately. This program calls two functions:
% f_adap
% get_angle
% At the end it returns the direction in degrees.
% CONSTANT VALUES
i=0;
fs=44100; % Sampling frequency (Hz)
d_micro=0.1; % Distance between microphones (m)
c=340; % Speed of sound (m/s)
muestrasMAX=ceil(d_microfs/c); % Maximum number of samples Nmax
DESP=ceil(muestrasMAX1.5); % Delay we insert in the micro 2
% We leave 50% of margin of error.
lengData=441000.5; % Number of samples in which the voice
% signals are divided to be processed.
% All values depend on fs and d_micro in
% case it was necessary to change them.
% Importing the
最后
以上就是义气路灯为你收集整理的麦克风阵列matlab,双通道麦克风阵列方向采集MATLAB代码实现的全部内容,希望文章能够帮你解决麦克风阵列matlab,双通道麦克风阵列方向采集MATLAB代码实现所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复