@jambonz/speech-utils 0.0.39 → 0.0.40
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 -2
- package/package.json +1 -1
package/lib/synth-audio.js
CHANGED
|
@@ -611,8 +611,8 @@ const synthElevenlabs = async(logger, {credentials, options, stats, language, vo
|
|
|
611
611
|
const {api_key, model_id, options: credOpts} = credentials;
|
|
612
612
|
const opts = !!options && Object.keys(options).length !== 0 ? options : JSON.parse(credOpts || '{}');
|
|
613
613
|
|
|
614
|
-
/*
|
|
615
|
-
if (process.env.
|
|
614
|
+
/* default to using the streaming interface, unless disabled by env var OR we want just a cache file */
|
|
615
|
+
if (!process.env.JAMBONES_DISABLE_TTS_STREAMING && !renderForCaching) {
|
|
616
616
|
let params = '';
|
|
617
617
|
params += `{api_key=${api_key}`;
|
|
618
618
|
params += `,model_id=${model_id}`;
|