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) {