From ba76ae1023ed0bfb94c01c07648f949b976f68ef Mon Sep 17 00:00:00 2001 From: guilevi Date: Wed, 15 Sep 2021 02:07:23 +0200 Subject: [PATCH] Possibly added SSML to Azure --- tts/azure/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tts/azure/index.js b/tts/azure/index.js index 38a8a27..47ee08e 100644 --- a/tts/azure/index.js +++ b/tts/azure/index.js @@ -20,8 +20,8 @@ module.exports = class AzureTTS extends BaseEngine { speechConfig.speechSynthesisVoiceName = this.voices[voice]; const audioConfig = sdk.AudioConfig.fromAudioFileOutput(filepath); const synthesizer = new sdk.SpeechSynthesizer(speechConfig, audioConfig); - synthesizer.speakTextAsync( - text, + synthesizer.speakSsmlTextAsync( + ''+text+'', result => { synthesizer.close(); if (result) {