fix(tts): forward gradium json_config to the streaming path (#157)

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 <noreply@anthropic.com>
This commit is contained in:
Dave Horton
2026-08-10 16:45:07 -04:00
committed by GitHub
co-authored by Claude Opus 5
parent 33456b93d9
commit 27e07bb551
+4
View File
@@ -1463,6 +1463,10 @@ const synthGradium = async(logger, {
params += `,write_cache_file=${disableTtsCache ? 0 : 1}`; params += `,write_cache_file=${disableTtsCache ? 0 : 1}`;
if (model_id) params += `,model_id=${model_id}`; if (model_id) params += `,model_id=${model_id}`;
if (pronunciation_id) params += `,pronunciation_id=${pronunciation_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 += '}'; params += '}';
return { return {