audioProcessingInMatlabSimulink

Share Embed Donate


Short Description

Download audioProcessingInMatlabSimulink...

Description

D

|  |     | 

|  |   

 |   |    ( |    (೺ᇜᆣ ೺ᇜᆣ)) |         ! "  # (ᛤⓧञણ ⫏⤻₇ ⫏⤻₇))  $### #%& & ' #

D



|  |     | 

About Me Experiences: 1993-1995: The MathWorks, Inc. 1995-now: CS Dept., Tsing Hua Univ., Taiwan

Research interests Speech/Audio Signal Processing, Fuzzy Logic, Neural Networks, Pattern Recognition, Biometric Identification, Document Classification, Webbased Technologies

Programming languages: MATLAB, C, JavaScript, VBScript, Perl«

2

D  D

D

D



|  |     | 

Outline Wave file manipulation Reading, writing, recording ...

Time-domain processing Delay, filtering, sptools «

Frequency-domain processing Spectrogram

Pitch determination Auto-correlation, SIFT, AMDF, HPS ...

Others Formant estimation, speech coding 3

D  D



D



|  |     | 

Toolbox/Blockset Used MATLAB Simulink Signal Processing Toolbox DSP Blockset

ƒ

D  D



D



|  |     | 

MATLAB Primer Before you start, you need to get familiar with MATLAB. Please read ³MATLAB Primer´ at the following page: http://neural.cs.nthu.edu.tw/jang/demo/demoDownload. asp Exercise: 1. Please plot two curves y=sin(2*t) and y=cos(3*t) in the same figure. 2. Please plot x vs. y where x=sin(2*t) and y=cos(3*t).

5

D  D



D



|  |     | 

To Read a Wave File To read a MS .wav file (PCM format only): wavread â   

     

â       

    

â      

If the wav file is stereo, y will be a two-column matrix.

r

D  D



D



|  |     | 

To Read a Wav File     

â       !â "  â  #   $ â  % &

Exercise€  '  !    () * +%#,%-. (/) &   ! $$&  $&  () $$&  '  ! 0$!    ( ) ;

D  D



D



|  |     | 

Solution to the Previous Exercise wavRead02.m: [y, fs] = wavread(µflanger.wav¶); subplot(2,1,1), plot((1:length(y))/fs, y(:,1)); subplot(2,1,2), plot((1:length(y))/fs, y(:,2));

å

D  D



D



|  |     | 

To Play Wav Files To play sound using Windows audio output device: wavplay, sound, soundsc  ââ   ââ  1â$.  0 $2  $  ââ  1â$.   $2  $ &â  &$  &$  ! &

Example (wavPlay01.m)€

â   1.  ââ 

Exercise€ ´  !      â ( ) 9

D  D



D



|  |     | 

To Read/Play Using DSP Blocks To read/play sound using DSP Blockset:  ' - $2" ' &$"´ 3 ´   ' - $2" ' 2"# 3  $

Example:

Frame-based operation!

Exercise: 4    !  10

D  D



D



|  |     | 

Solution Solution to the previous exercise: slWavFilePlay01.mdl

11

D  D



D



|  |     | 

To Write a Wave File To write MS wave files: wavwrite  â      ( ) &  5  6 (â) & !  $ &    % &  & &  0  $ 

Example (wavWrite01.m)€

â   1.  â 7 5 1&. 8 &

Exercise€ #â & !     12

D  D

D

D



|  |     | 

To Record a Wave File To record wave files:  * ! $  & â & 3 9'  * ($) & +%#,%- : * (´ 3  $) & & 2 & ( ' - $2"'   $ $ ;
View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF