Possibly added SSML to Azure
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user