prosodylab / Prosodylab-Aligner

Python interface for forced audio alignment using HTK and SoX
http://prosodylab.org/tools/aligner/
MIT License
331 stars 77 forks source link

sp and sil always recognized as phonemes #57

Closed rwingham closed 7 years ago

rwingham commented 7 years ago

This is a one-line fix that keeps prondict.py from exiting if 'sil' or 'sp' is used in a .dict file. This allows for dictionary files with pauses within a word.

kylebgorman commented 7 years ago

LGTM!

(I am going to make a slight edit to this after merging. It looks like phoneset is of type frozenset so reasonably, the set containing 'sp' and 'sil' ought to be as well. And I also noticed that 'sp' and 'sil' are defined as globals in utilities.py so I'm going to use those, just to be sure.)