This commit is contained in:
Quan HL
2024-02-26 15:42:09 +07:00
parent 3560a6d4d9
commit 31a54f595b

View File

@@ -422,8 +422,8 @@ const synthMicrosoft = async(logger, {
if (!process.env.JAMBONES_DISABLE_TTS_STREAMING && !renderForCaching) {
let params = '';
params += `{api_key=${apiKey}`;
params += `,region=${region}`;
params += `,language=${language}`;
if (region) params += `,region=${region}`;
if (custom_tts_endpoint) params += `,endpointId=${custom_tts_endpoint}`;
if (process.env.JAMBONES_HTTP_PROXY_IP) params += `,http_proxy_ip=${process.env.JAMBONES_HTTP_PROXY_IP}`;
if (process.env.JAMBONES_HTTP_PROXY_PORT) params += `,http_proxy_port=${process.env.JAMBONES_HTTP_PROXY_PORT}`;