Possibly added SSML to Azure
parent
82d5cbc758
commit
ba76ae1023
|
@ -20,8 +20,8 @@ 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.speakTextAsync(
|
synthesizer.speakSsmlTextAsync(
|
||||||
text,
|
'<speak>'+text+'</speak>',
|
||||||
result => {
|
result => {
|
||||||
synthesizer.close();
|
synthesizer.close();
|
||||||
if (result) {
|
if (result) {
|
||||||
|
|
Loading…
Reference in New Issue