How to apply DTW to 2 WAV audios

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 comentarios

Greg Dionne
Greg Dionne el 27 de Jul. de 2017
You may have better luck using a spectrogram to match audio signals.
Have a look at the example here: Finding Time-Stretched Power Signals
Mayque Souza
Mayque Souza el 7 de Ag. de 2017
Editada: Mayque Souza el 7 de Ag. de 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.
Greg Dionne
Greg Dionne el 25 de Ag. de 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).
Mayque Souza
Mayque Souza el 30 de Ag. de 2017
Thanks Greg.

Iniciar sesión para comentar.

Respuestas (1)

Mayque Souza
Mayque Souza el 8 de Ag. de 2017

0 votos

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.

Categorías

Más información sobre Audio I/O and Waveform Generation en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 26 de Jul. de 2017

Comentada:

el 30 de Ag. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by