That’s what I was looking for thank you!
for everyone else, here’s an example Jan pointed out:
// Example: Wrap Alexa Skill output in a Polly voice SSML tag
// before the response JSON is created in the platform.output middleware
app.hook('before.platform.output', (error, host, jovo) => {
const pollyName = 'Hans';
if (jovo.isAlexaSkill()) {
if (jovo.$output.tell) {
jovo.$output.tell.speech = `<voice name="${pollyName}">${jovo.$output.tell.speech}</voice>`;
}
if (jovo.$output.ask) {
jovo.$output.ask.speech = `<voice name="${pollyName}">${jovo.$output.ask.speech}</voice>`;
jovo.$output.ask.reprompt = `<voice name="${pollyName}">${jovo.$output.ask.reprompt}</voice>`;
}
}
});