Add pocketsphinx_to_textgrid utility for Praat TextGrid conversion#456
Add pocketsphinx_to_textgrid utility for Praat TextGrid conversion#456lenzo-ka wants to merge 1 commit intocmusphinx:mainfrom
Conversation
Convert PocketSphinx JSON alignment output to Praat TextGrid format. Supports word, phone, and state tiers depending on alignment level. Optional Praat integration with -w and --praat flags.
|
Very cool and useful (I am almost certain that I wrote this myself at least 2-3 times in the past, but no longer know what happened to those...) |
|
Ah in fact they probably are in https://github.com/ReadAlongs/Studio somewhere. There's also code there to output ELAN EAF files, which may be useful here too. |
|
Might be worth consolidating closer to the aligner? |
Hi! Really sorry about my super late replies here. Yes, I think this might be more useful as simply an option to TextGrid (unlike EAF) is a pretty simple format and it looks like this could be rewritten easily in C. |
dhdaines
left a comment
There was a problem hiding this comment.
As mentioned in the comment! I think this should be straightforward to write in C and simply add as an option to pocketsphinx align. Particularly since we don't need to parse any JSON in that case.
Description
Add
pocketsphinx_to_textgridutility to convert PocketSphinx JSON alignment output to Praat TextGrid format.Closes #455
Features
pocketsphinx alignto TextGrid format-phone_align/-state_alignoptions used)-o-w audio.wav --praatopens the result in PraatUsage
Verification steps