patrickschu / textgrid-convert

textgrid-convert converts audio transcripts such as sbv or srt files to Praat and DARLA compatible TextGrids.
9 stars 1 forks source link

Two questions #36

Open wordsmith189 opened 2 years ago

wordsmith189 commented 2 years ago

QUESTION 1: if my most typical use case is conversion from .sbv to .TextGrid format, what is the shortest command I can do this with?

QUESTION 2: the program seems to know both "textgrid" and "darlatextgrid" as output format - what is the diff?

patrickschu commented 2 years ago

QUESTION 1: if my most typical use case is conversion from .sbv to .TextGrid format, what is the shortest command I can do this with?

I think the shortest version for any $INPUT_FILE would be

python -m textgrid_convert -f sbv -t TextGrid -i $INPUT_FILE

If your $INPUTFILE has a .sbv_ extension, you can drop the -f parameter:

python -m textgrid_convert -t TextGrid -i $INPUT_FILE.sbv

If you run it in the Terminal, you can always use CTRL + R and start typing the command to pull up your previous run and just edit the input file.

This worked for my sample files. Also see the format overview here

QUESTION 2: the program seems to know both "textgrid" and "darlatextgrid" as output format - what is the diff?

These are interchangeable based on this code .