This commit is contained in:
Quan HL
2023-08-25 15:57:23 +07:00
parent 9d2ac3273f
commit 35deeecf70

View File

@@ -353,7 +353,8 @@ async function _synthMicrosoftByHttp(logger, {
try {
const post = bent('POST', 'buffer', {
'X-Microsoft-OutputFormat': 'audio-16khz-128kbitrate-mono-mp3',
'Content-Type': 'application/ssml+xml'
'Content-Type': 'application/ssml+xml',
'User-Agent': 'Jambonz'
});
const mp3 = await post(custom_tts_endpoint_url, content);
return mp3;