Page MenuHomePhabricator

sox-proxy doesn't handle errors from symbolset
Open, Needs TriagePublic

Description

If there is an error when sox-proxy sends a request to Speechoid it won't be passed to the user. Instead there will be a generic Speechoid error.

This happens when symbol mapping fails (e.g. unknown phoneme). The error from symbolset is just a string, but sox-proxy assumes that the response is JSON. Adding a try that catch the JSON error to respond with the original error should fix this.

Event Timeline

As far as I can tell, yes. It's technically used for all Speechoid requests I think, but it only does something when an utterance starts with a very high sound, which is limited to MaryTTS.