Problem with addBreak used with addSayAsOrdinal

amazon-alexa

#1

Hi:
I am having an issue using addSayAsOrdinal with addBreak, basically the ListIntent creates an array of indexes of audio feeds from json file to present the titles to the user to choose from. Everything is fine except that the addBreak(“100ms”) does not work, and Alexa just goes through the list without breaks between each title:

Im using the code mostly from the Jovo Demo:

Thanks for the help.


#2

Hi @zia-jai, welcome to the Jovo community :wave:

Could you share the JSON result of this output?


#3

Hi Jan, Here is the Json response, thanks for looking into this:

{
	"body": {
		"version": "1.0",
		"response": {
			"outputSpeech": {
				"type": "SSML",
				"ssml": "<speak>Hier ist die Liste von Episoden:  1 Wie Jägermeister mit neuem Onlineshop mehr Umsatz macht  2 CMS Vergleich für Unternehmen: Magnolia vs. Adobe Experience Manager  3 Wie Onlinehändler individuelle Einkaufserlebnisse schaffen  4 Content Marketing: Mit Blogcast neue User erreichen   5 Performance-Optimierung für Onlineshops  Welche möchten Sie sich anhören?</speak>"
			},
			"reprompt": {
				"outputSpeech": {
					"type": "SSML",
					"ssml": "<speak>Hier ist die Liste von Episoden:  1 Wie Jägermeister mit neuem Onlineshop mehr Umsatz macht  2 CMS Vergleich für Unternehmen: Magnolia vs. Adobe Experience Manager  3 Wie Onlinehändler individuelle Einkaufserlebnisse schaffen  4 Content Marketing: Mit Blogcast neue User erreichen   5 Performance-Optimierung für Onlineshops  Welche möchten Sie sich anhören?</speak>"
				}
			},
			"shouldEndSession": false,
			"type": "_DEFAULT_RESPONSE"
		},
		"sessionAttributes": {
			"episodeIndices": [
				0,
				1,
				2,
				3,
				4
			]
		}
	}
}

#4

Hey @zia-jai

just published the fix on NPM. Please run jovo update and let me know if you still run into that problem.


#5

Hi @AlexSwe:
The fix works like a charm! Thank you for your support.

Cheers