当前位置:网站首页>[short time average zero crossing rate] short time average zero crossing rate of speech signal based on MATLAB [including Matlab source code 1721]

[short time average zero crossing rate] short time average zero crossing rate of speech signal based on MATLAB [including Matlab source code 1721]

2022-06-25 06:20:00 Purple extreme divine light

One 、 How to get the code

How to get the code 1:
The complete code has been uploaded to my resources :【 Short time average zero crossing rate 】 be based on matlab Short time average zero crossing rate of speech signal 【 contain Matlab Source code 1721 period 】

How to get the code 2:
By subscribing to Ziji Shenguang blog Paid column , With proof of payment , Private Blogger , This code is available .

remarks :
Subscribe to Ziji Shenguang blog Paid column , Free access to 1 Copy code ( The period of validity From the Subscription Date , Valid for three days );

Two 、 Brief introduction to the principle of short-time average zero crossing rate

The short-time average zero crossing rate represents the number of times that the speech signal waveform crosses the horizontal axis in a frame of speech

3、 ... and 、 Partial source code

clear all; clc; close all;
filedir=[];                       %  Set the path 
filename='s.wav';          %  Set file name 
fle=[filedir filename];           %  Form the complete path and file name 
[xx,Fs]=audioread(fle);             %  Read in the data file 
x=detrend(xx);                    %  Eliminate DC component 
wlen=200; inc=80;                 %  Set frame length 、 Frame shift 
win=hanning(wlen);                %  Window function 
N=length(x);                      %  Find the data length 
X=enframe(x,win,inc)';            %  Framing 
fn=size(X,2);                     %  Get the number of frames 
zcr1=zeros(1,fn);                 %  initialization 

time=(0:N-1)/Fs;                  %  Calculate time coordinates 
frameTime=frame2time(fn,wlen,inc,Fs);  %  Find the time corresponding to each frame 
%  Make a picture 
subplot 211; plot(time,x,'k'); grid;
title(' Voice waveform ');
ylabel(' amplitude '); xlabel([' Time /s' 10 '(a)']);
subplot 212; plot(frameTime,zcr1,'k'); grid;
title(' Short time average zero crossing rate ');
ylabel(' amplitude '); xlabel([' Time /s' 10 '(b)']);


Four 、 Running results

 Insert picture description here

5、 ... and 、matlab Edition and references

1 matlab edition
2014a

2 reference
[1] Han Jiqing , Zhang Lei , Zheng tieran . Voice signal processing ( The first 3 edition )[M]. tsinghua university press ,2019.
[2] Liu ruobian . Deep learning : Speech recognition technology practice [M]. tsinghua university press ,2019.
[3] Song Yunfei , Jiang zhancai , Wei Zhonghua . be based on MATLAB GUI Voice processing interface design [J]. Technology Information . 2013,(02)

原网站

版权声明
本文为[Purple extreme divine light]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202201236493573.html