Hi! I made my very first Jovo App recently, because I’ve always used Alexa SDK for Nodejs.
We made a skill and an action for kids and it was dubbed by a kid too, so we don’t send any text back to the user, but only a sequence of audio.
In order to do that, we “created” a special syntax for our i18n json file and we had to manually parse each string. This is an example:
"speech": "lets_start _{{audioInfo.name}} <1.5s> *listenState.shall_we_play_it"
- lets_start is an audio which is stored in S3 and lets_start is appended to the base URL of the bucket
- _{{audioInfo.name}} is replaced by i18next with a valid link of an audio. _ states that the new string is already an URL and doesn’t need to be appended
- <1.5s> adds a break which lasts for 1.5s
- *listenState.shall_we_play_it is a key contained in the json and it represents an array. The * states that speechbuilder has to fetch a random key from that array. Each entry of the array contains a string, like lets_start, which will be appended to the base URL of the bucket.
I don’t know if this is the case, but I’ve never seen this kind of features implemented at framework level and it would be nice if it was added.