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