I'm building a simple alexa skill.
I'm trying to output a text message (in italian) with some english word in it, but i don't found how let it works..
return github.getFollowersCount(search)
.then((count) => {
const speechOutput = `${search} ha ${count} <lang xml:lang="en-GB">follower</lang>`;
return handlerInput.responseBuilder
.speak(speechOutput);
})
return {
ssml: `<speak>Hai ${count} <lang xml:lang="en-GB">follower</lang></speak>`,
type: 'SSML',
};
const speechOutput = `${search} ha ${count} <lang xml:lang="en-GB">follower</lang>`;
return handlerInput.responseBuilder
.speak(escaleTag(speechOutput));
I don't find any docs or way to make it works.
Also ssml-builder seems doesn't support the lang
tag..
Do you have any suggestions? What the handler function should return?
Thank you
That should totally work. Have you tried with <lang xml:lang="en-US">
or with another language?