Modified Python3 P2FA for Mandarin
If you have installed these:
- Python 3
- Htk 3.4
- SoX (Sound eXchange)
Then you can:
- Clone this repository
- Add a
filename.wav
file and its corresponding transcriptfilename.txt
file into the/run
directory. - Open the
Calign2textgrid.py
in your editor and modify the path of your/run
folder in line 21HOMEDIR =
(You can find the path by dragging the folder into the Terminal on a Mac) - In Terminal, navigate to the
/run
directory:
$ python Calign2textgrid.py filename.wav filename.txt filename.Textgrid
The output filename.Textgrid
is the corresponding time-aligned .Textgrid file.