I'm fucking dumb

master
guilevi 2021-11-05 02:24:57 +01:00
parent dd618bf785
commit b8b2906fe3
1 changed files with 1 additions and 2 deletions

View File

@ -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(
'<speak>'+text+'</speak>',
synthesizer.speakTextAsync(text,
result => {
synthesizer.close();
if (result) {