From 27e07bb551e86beea0ad2cd8e25a7a6c60697971 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Mon, 10 Aug 2026 16:45:07 -0400 Subject: [PATCH] fix(tts): forward gradium json_config to the streaming path (#157) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit synthGradium destructured json_config from options but only forwarded pronunciation_id into the say: param block, so the setting could never reach mediajam's streaming dialect — only the cache-render POST. The say: parser is brace-aware, so a nested json object survives intact. Co-authored-by: Claude Opus 5 --- lib/synth-audio.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/synth-audio.js b/lib/synth-audio.js index 762e23c..d916d93 100644 --- a/lib/synth-audio.js +++ b/lib/synth-audio.js @@ -1463,6 +1463,10 @@ const synthGradium = async(logger, { params += `,write_cache_file=${disableTtsCache ? 0 : 1}`; if (model_id) params += `,model_id=${model_id}`; if (pronunciation_id) params += `,pronunciation_id=${pronunciation_id}`; + /* the say: param parser is brace-aware, so a nested json object survives intact */ + if (json_config) { + params += `,json_config=${typeof json_config === 'string' ? json_config : JSON.stringify(json_config)}`; + } params += '}'; return {