cmusphinx/pocketsphinx

Getting Start & End Times of a Phrase

digiphd opened this issue · 0 comments

Hey Guys,

Great library! In Python, how would you go about forced alignment to extract the start and end time in seconds for an input string, in this case, a sentence? Or perhaps the closest matched sentence?

For example, I have an audio file, which is someone speaking. And I have a string variable that contains a sentence that this person speaks in the file, how do I find the timing of that one sentence?

Then to extend that, how do I find each sentence that is in a list.

Any help would be appreciated.