Your question is Create TTS Web App With SSML Parsing. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Create a TTS web app with indications for the current reading sentence and the ability to highlight the currently playing word by fetching SSML content from an API and parsing the <s> elements into sentences without using DOMParser or external libraries.
Asked in the Take-home Assessment stage. 1 hour 30 minutes time limit. Implement fetchContent, parseContentIntoSentences, a useSpeech hook, and UI controls for playback and displaying the currently read sentence and word.
ssml: a string containing SSML with one or more <s> elements<s> elements, in order<s>...</s> blocksdef parse_content_into_sentences(ssml):