- The code for the api is in the
apidirectory. This piece is basically responsible for sending a random response from the array defined indata.js. - The api returns a response in form of a JSON object containing contents. The content string is in form of a subset of SSML that is defined later here.
- Create an app that calls an api to fetch SSML content and then synthesizes this content into speech and renders a sentence and word UI for the same.
- The API returns the content in form of an SSML string. This string will only contain a subset of SSML features:
<speak>,<p>,<s>. - The assignment only requires focus on the
<s>element which defines the beginning and the end of the sentences. - To complete this assignment, you must extract all the sentences from the SSML files ignoring everything else that is invalid.