cmusphinx / pocketsphinx

A small speech recognizer
Other
3.93k stars 717 forks source link

Getting Start & End Times of a Phrase #330

Open digiphd opened 1 year ago

digiphd commented 1 year ago

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.