Clear Filters
Clear Filters

How to apply DTW to 2 WAV audios

4 views (last 30 days)
Mayque Souza
Mayque Souza on 26 Jul 2017
Commented: Mayque Souza on 30 Aug 2017
Hi, I would like some help to apply DTW to two audios in .WAV format. I'm trying in the following way, but without success:
[wave1,Fs1] = audioread('audio1.wav');
[wave2, Fs2] = audioread('audio2.wav');
dtw(wave1,wave2);
and
audio1 = audioread('audio1.wav');
audio2 = audioread('audio2.wav');
Still unsuccessful
  4 Comments
Greg Dionne
Greg Dionne on 25 Aug 2017
I think you can try taking the distance that DTW gives you and do some processing on it (e.g. if the distance is less than some threshold based upon some function of the power of the test signal to match).

Sign in to comment.

Answers (1)

Mayque Souza
Mayque Souza on 8 Aug 2017
Hi, thanks for the answer, this solution answered me, though, it just shows me the plot chart, is there any way I use it as a true or false? For example, if there are any signs found, it will execute a command, if it does not find it, it will execute another one. With the output in plot I can not create a variable to receive the amount of signals found.
Is there any way to add the value of the amount of signals found in a variable?
Sorry for bad inglês.

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!