/P2FA_Mandarin_py3

Modified Python3 P2FA for Mandarin

Primary LanguagePython

P2FA_Mandarin_py3

Modified Python3 P2FA for Mandarin

Quick Start:

If you have installed these:

  • Python 3
  • Htk 3.4
  • SoX (Sound eXchange)

Then you can:

  1. Clone this repository
  2. Add a filename.wav file and its corresponding transcript filename.txt file into the /run directory.
  3. Open the Calign2textgrid.py in your editor and modify the path of your /run folder in line 21 HOMEDIR = (You can find the path by dragging the folder into the Terminal on a Mac)
  4. 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.

A detailed step-by-step guide: https://chenzixu.rbind.io/resources/forcedalignment/