From b8b2906fe35e5e564e2bbe39a306fd326d4ca506 Mon Sep 17 00:00:00 2001 From: guilevi Date: Fri, 5 Nov 2021 02:24:57 +0100 Subject: [PATCH] I'm fucking dumb --- tts/azure/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) {