Q:

Word indexing in audiofile when the text is known

I have an audio file and a text file which correspond to what is said in the audio. Is their a way with Python (using any library) to find the start timestamp (and eventually end) of each word in the audio.
For example, if I have an audio file and a text file which contains "Hello, my name is" (corresponding to what is said in the audio), I want to obtain something like that :
"Hello" : 1'24.038 -> 1'24.321    
"my" : 1'24.518 -> 1'24.627    
"name" : 1'24.629 -> 1'24.851    
"is" : 1'24.861 -> 1'24.921   

I realize that speech recognition is a really hard problem, but my problem seems a lot easier since it just consists in matching text and audio. However, I still haven't find any way to do it, and if there exists nothing easy, does anybody have an idea of how I could start ? Thanks !

A:

aeneas does that very well. Pretty robust in my experience. Only drawback it that it seems to be way better at finding the beginning of the words that the end. So basically you will have:
"Hello" : 1'24.038 -> 1'24.518 
"my" : 1'24.518 ->  1'24.629   
"name" : 1'24.629 -> 1'24.861    
"is" : 1'24.861 -> 1'24.921  

Give it a try!

