maybe now
parent
cd0ae8aadf
commit
78e2c77bc7
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue