Page MenuHomePhabricator

☂ Synthezise default error messages
Open, Needs TriagePublic

Description

This was extracted from T254864: Wikispeech attempts, but fails, to play non-existing page

When an error occurs, we try to synthesise something which is too long, try to synthesise a non-existant page, Speechoid is unreachable etc., there is currently no audio feedback to the listener.

A mechanism for addressing this would be to set up some i18n messages which get synthesised on installation of the Extension. These could then be returned at the appropriate moments.

The difficulty will likely lie with injecting these messages into the database (they have no corresponding page), finding a good expiration method, we ideally want to re-generate them as seldom as possible to avoid them disappearing when there is an issue with Speechoid and we want to trigger a re-generation upon deployment of new i18n translation.

Event Timeline

It may not be to hard to do this if we generalize pageId for utterances. We may even get away with just having a faux id (maybe 0) for anything that isn't from a page.

Apart from error messages there would be other messages (e.g. for labels in the UI). The i18n files should give us most of these and in a format that should be easy to handle. I think there are some messages that are defined on wiki pages that may be trickier.

Sebastian_Berlin-WMSE renamed this task from Synthezise default error messages to ☂ Synthezise default error messages.Feb 12 2025, 1:22 PM