mirror of
https://github.com/jambonz/speech-utils.git
synced 2026-08-19 09:40:19 +00:00
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:
co-authored by
Claude Opus 5
parent
33456b93d9
commit
27e07bb551
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user