CoEDL / elpis

🙊 software for creating speech recognition models.
https://elpis.readthedocs.io/en/latest/
Apache License 2.0
152 stars 33 forks source link

Customising pron dict needs to also update nonsilence.txt #56

Open benfoley opened 5 years ago

benfoley commented 5 years ago

We now save the pronunciation dictionary if the user edits it, but if user inputs phoneme symbols that aren't covered by the L2S map, we will get an error when running training.

ERROR: phone "R" is not in {, non}silence.txt (line 3)

To fix this, we could parse the save_lexicon payload to get all the phone symbols, and write them to a new file. Then use that to build the nonsilence.txt file in wrappers/objects/model.py > prepare_for_training rather than using the l2s file.