@jambonz/speech-utils 1.0.16 → 1.0.17
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 +4 -0
- package/package.json +1 -1
package/lib/synth-audio.js
CHANGED
|
@@ -1463,6 +1463,10 @@ const synthGradium = async(logger, {
|
|
|
1463
1463
|
params += `,write_cache_file=${disableTtsCache ? 0 : 1}`;
|
|
1464
1464
|
if (model_id) params += `,model_id=${model_id}`;
|
|
1465
1465
|
if (pronunciation_id) params += `,pronunciation_id=${pronunciation_id}`;
|
|
1466
|
+
/* the say: param parser is brace-aware, so a nested json object survives intact */
|
|
1467
|
+
if (json_config) {
|
|
1468
|
+
params += `,json_config=${typeof json_config === 'string' ? json_config : JSON.stringify(json_config)}`;
|
|
1469
|
+
}
|
|
1466
1470
|
params += '}';
|
|
1467
1471
|
|
|
1468
1472
|
return {
|