diff --git a/tts/azure/index.js b/tts/azure/index.js index 16414cd..4b1fe31 100644 --- a/tts/azure/index.js +++ b/tts/azure/index.js @@ -20,8 +20,7 @@ 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.speakSsmlAsync( - ''+text+'', + synthesizer.speakTextAsync(text, result => { synthesizer.close(); if (result) {