@jambonz/speech-utils 0.0.45 → 0.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/synth-audio.js +2 -1
- package/package.json +1 -1
package/lib/synth-audio.js
CHANGED
|
@@ -141,7 +141,7 @@ async function synthAudio(client, logger, stats, { account_sid,
|
|
|
141
141
|
let filePath;
|
|
142
142
|
if (['nuance', 'nvidia'].includes(vendor) ||
|
|
143
143
|
(
|
|
144
|
-
process.env.JAMBONES_TTS_TRIM_SILENCE &&
|
|
144
|
+
(process.env.JAMBONES_TTS_TRIM_SILENCE || !process.env.JAMBONES_DISABLE_TTS_STREAMING) &&
|
|
145
145
|
['microsoft', 'azure'].includes(vendor)
|
|
146
146
|
) ||
|
|
147
147
|
(
|
|
@@ -412,6 +412,7 @@ const synthMicrosoft = async(logger, {
|
|
|
412
412
|
params += `,language=${language}`;
|
|
413
413
|
params += ',vendor=microsoft';
|
|
414
414
|
params += `,voice=${voice}`;
|
|
415
|
+
params += ',write_cache_file=1';
|
|
415
416
|
if (region) params += `,region=${region}`;
|
|
416
417
|
if (custom_tts_endpoint) params += `,endpointId=${custom_tts_endpoint}`;
|
|
417
418
|
if (process.env.JAMBONES_HTTP_PROXY_IP) params += `,http_proxy_ip=${process.env.JAMBONES_HTTP_PROXY_IP}`;
|