maybe now

master
guilevi 2021-09-15 02:13:50 +02:00
parent cd0ae8aadf
commit 78e2c77bc7
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ module.exports = class AzureTTS extends BaseEngine {
speechConfig.speechSynthesisVoiceName = this.voices[voice]; speechConfig.speechSynthesisVoiceName = this.voices[voice];
const audioConfig = sdk.AudioConfig.fromAudioFileOutput(filepath); const audioConfig = sdk.AudioConfig.fromAudioFileOutput(filepath);
const synthesizer = new sdk.SpeechSynthesizer(speechConfig, audioConfig); const synthesizer = new sdk.SpeechSynthesizer(speechConfig, audioConfig);
synthesizer.speakSsmlTextAsync( synthesizer.speakSsmlAsync(
'<speak>'+text+'</speak>', '<speak>'+text+'</speak>',
result => { result => {
synthesizer.close(); synthesizer.close();