Possibly added SSML to Azure

master
guilevi 2021-09-15 02:07:23 +02:00
parent 82d5cbc758
commit ba76ae1023
1 changed files with 2 additions and 2 deletions

View File

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