maybe now
parent
cd0ae8aadf
commit
78e2c77bc7
|
@ -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(
|
||||
'<speak>'+text+'</speak>',
|
||||
result => {
|
||||
synthesizer.close();
|
||||
|
|
Loading…
Reference in New Issue