From 35deeecf70cb5ba15ccb49fae311574e66e0133a Mon Sep 17 00:00:00 2001 From: Quan HL Date: Fri, 25 Aug 2023 15:57:23 +0700 Subject: [PATCH] wip --- lib/synth-audio.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/synth-audio.js b/lib/synth-audio.js index 4d25abe..f44723d 100644 --- a/lib/synth-audio.js +++ b/lib/synth-audio.js @@ -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;