LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   CLI: Compare two Wav files? (https://www.linuxquestions.org/questions/debian-26/cli-compare-two-wav-files-917998/)

Xeratul 12-10-2011 12:13 AM

CLI: Compare two Wav files?
 
Hello,

All modern Operating systems have a voice reco nowadays.
Although Vista got some issue with it, but anyhow.
http://www.zdnet.com/blog/ou/vista-s...te-exploit/416

Apple is also strong in this direction.

Linux has sphinx 2 into the repositories, and you can use wine with Dragon Naturally Speaking. It works but no so well, since the performances of the reco depends on the CPU.

Then there are few little projects for Linux, which could be discontinued in the future (requiring Kde, e.g. Symon, or others).


In a CLI method, for backend, how would you compare two files?

Here we go:

first one, I record a voice speech "Hello" with my usb mic
Code:

cd ; arecord -Dplughw:0,0 -f cd -vv hello.wav
and second one, saying "good morning!"
Code:

cd ; arecord -Dplughw:0,0 -f cd -vv secondwav.wav
How would you compare it with a CLI program that compares their amplitudes or that "hello" is into secondwav.wav yes or not ?

- Reply : no solutions. Wait 10-15 years.

Doc CPU 12-10-2011 02:41 AM

Hi there,

Quote:

Originally Posted by Xeratul (Post 4546388)
All modern Operating systems have a voice reco nowadays.

no, they haven't. It's their desktop environment or some dedicated application that does this.

Quote:

Originally Posted by Xeratul (Post 4546388)
In a CLI method, for backend, how would you compare two files?

Actually, about two years ago I started to develop a program that would do exactly that as a hobby project. It was designed to examine two audio files and assess their similarity, mostly ignoring technical parameters like sampling rate, recording level or minor background noise, and finally give a guess on how high the chance is that these two audio files basically contain the same information.
Originally, I started that project to deal with mp3 music and find out different recordings of the same title.

I abandoned it then because there were more important things to do and I ran out of time. But I might pick it up again.

Quote:

Originally Posted by Xeratul (Post 4546388)
- Reply : no solutions. Wait 10-15 years.

I'd rather expect 6..12 months for the solution I have in mind.

[X] Doc CPU

alex.t 12-10-2011 07:17 PM

Quote:

Originally Posted by Xeratul (Post 4546388)
Hello,

All modern Operating systems have a voice reco nowadays.
...
In a CLI method, for backend, how would you compare two files?
...

I don't see the link between speech recognition (voice recognition is something different) and signal processing. You cannot really use a speech recognizer as a signal processor. Other link I cannot see - what this question has to do with Debian/Linux questions.

Xeratul 12-11-2011 02:15 PM

Quote:

Originally Posted by Doc CPU (Post 4546420)
Hi there,



no, they haven't. It's their desktop environment or some dedicated application that does this.



Actually, about two years ago I started to develop a program that would do exactly that as a hobby project. It was designed to examine two audio files and assess their similarity, mostly ignoring technical parameters like sampling rate, recording level or minor background noise, and finally give a guess on how high the chance is that these two audio files basically contain the same information.
Originally, I started that project to deal with mp3 music and find out different recordings of the same title.

I abandoned it then because there were more important things to do and I ran out of time. But I might pick it up again.



I'd rather expect 6..12 months for the solution I have in mind.

[X] Doc CPU



Cool post. Thank you. Are you interesting to work on this project together? I could help a bit.
PM me ... Cheers

Xeratul 12-21-2011 12:33 PM

anyone would have more inputs on that general topic of comparing wav's ?


All times are GMT -5. The time now is 06:07 PM.