http://localhost/wikispeech_mockup/workflow_demo/test.html
Steps to reproduce:
1. Startpage: Select "nb"
2. Click "Start"
3. In the Lexicon tab, select "banebrydende" (or I think pretty much any word in the Norwegian demo)
4. Open the javascript console
5. Click the "listen" button in the left area of the window. You will see this error in the console (no audio is played):
500 (INTERNAL SERVER ERROR)
Uncaught SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
at XMLHttpRequest.xhr.onload (wikispeech_simple_player.js:159)
----
Output from wikispeech/stderr:
wikispeech_1 | [2017-09-29 13:11:47,269] ERROR in app: Exception on /wikispeech/ [POST]
wikispeech_1 | Traceback (most recent call last):
wikispeech_1 | File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1982, in wsgi_app
wikispeech_1 | response = self.full_dispatch_request()
wikispeech_1 | File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1614, in full_dispatch_request
wikispeech_1 | rv = self.handle_user_exception(e)
wikispeech_1 | File "/usr/local/lib/python3.5/dist-packages/flask_cors/extension.py", line 161, in wrapped_function
wikispeech_1 | return cors_after_request(app.make_response(f(*args, **kwargs)))
wikispeech_1 | File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1517, in handle_user_exception
wikispeech_1 | reraise(exc_type, exc_value, tb)
wikispeech_1 | File "/usr/local/lib/python3.5/dist-packages/flask/_compat.py", line 33, in reraise
wikispeech_1 | raise value
wikispeech_1 | File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1612, in full_dispatch_request
wikispeech_1 | rv = self.dispatch_request()
wikispeech_1 | File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1598, in dispatch_request
wikispeech_1 | return self.view_functions[rule.endpoint](**req.view_args)
wikispeech_1 | File "./wikispeech_server/wikispeech.py", line 154, in wikispeech
wikispeech_1 | markup = textproc(lang, textprocessor_name, input, input_type=input_type)
wikispeech_1 | File "./wikispeech_server/wikispeech.py", line 367, in textproc
wikispeech_1 | utt = process(text, lang, component, input_type=input_type)
wikispeech_1 | File "./wikispeech_server/adapters/marytts_adapter.py", line 61, in marytts_preproc
wikispeech_1 | (marylang, utt) = maryxml2utt(xml, tp_config)
wikispeech_1 | File "./wikispeech_server/adapters/marytts_adapter.py", line 441, in maryxml2utt
wikispeech_1 | utt = mary2ws(xml, voice)
wikispeech_1 | File "./wikispeech_server/adapters/marytts_adapter.py", line 459, in mary2ws
wikispeech_1 | root = ET.fromstring(maryxml.encode('utf-8'))
wikispeech_1 | File "/usr/lib/python3.5/xml/etree/ElementTree.py", line 1344, in XML
wikispeech_1 | parser.feed(text)
wikispeech_1 | File "<string>", line None
wikispeech_1 | xml.etree.ElementTree.ParseError: mismatched tag: line 1, column 2052
wikispeech_1 | 172.99.0.1 - - [29/Sep/2017 13:11:47] "POST /wikispeech/ HTTP/1.1" 500 -