mirror of
https://github.com/jambonz/speech-utils.git
synced 2025-12-19 03:37:49 +00:00
feat/893 azure ssml lang for on prem
This commit is contained in:
@@ -482,6 +482,10 @@ async function _synthOnPremMicrosoft(logger, {
|
||||
content = `<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xmlns:mstts="https://www.w3.org/2001/mstts" xml:lang="${language}"><voice name="${voice}">${words}</voice></speak>`;
|
||||
logger.info({content}, 'synthMicrosoft');
|
||||
}
|
||||
if (JAMBONES_AZURE_ENABLE_SSML) {
|
||||
// eslint-disable-next-line max-len
|
||||
content = `<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xmlns:mstts="https://www.w3.org/2001/mstts" xml:lang="${language}"><voice name="${voice}"><lang xml:lang="${language}">${text}</lang></voice></speak>`;
|
||||
}
|
||||
|
||||
try {
|
||||
const trimSilence = JAMBONES_TTS_TRIM_SILENCE;
|
||||
|
||||
Reference in New Issue
Block a user