Page MenuHomePhabricator

Wikispeech-server does not handle single <sub> SSML content
Open, Needs TriagePublic

Description

If the SSML sent to Wikispeech-server only contains a single <sub> child node, it will not work.

See @todo in MediaWiki\Wikispeech\Segment\ContentTextFilter\Filter.php

Example request:

{
	"lang": "sv",
	"input_type": "ssml",
	"input": "<speak version=\"1.0\" xmlns=\"http://www.w3.org/2001/10/synthesis\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemalocation=\"http://www.w3.org/2001/10/synthesis\n                   http://www.w3.org/TR/speech-synthesis/synthesis.xsd\" xml:lang=\"sv\">\n<sub alias=\"nittonhundra-femtionio\">1959</sub> \n</speak>"
}