pocketsphinx icon indicating copy to clipboard operation
pocketsphinx copied to clipboard

Getting Start & End Times of a Phrase

Open digiphd opened this issue 2 years ago • 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.

digiphd avatar Feb 03 '23 20:02 digiphd