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

Inscrutable error behavior when dealing with an empty label file #50

Closed kylebgorman closed 8 years ago

kylebgorman commented 8 years ago

When training (-t) HERest may inexplicably fail with return code -11. This usually indicates that at least one label file is simply empty (modulo whitespace). HTK says it clearly to stderr, but check_call eats that error. Best thing to do would be to wrap something or other in a try: except for CalledProcessError and then print stderr before dying?

(Reported by Dora Moore)