This commit is contained in:
Quan HL
2025-05-13 18:02:11 +07:00
parent 9a524f00bc
commit cb50f603cd

View File

@@ -1062,7 +1062,7 @@ const synthWhisper = async(logger, {credentials, stats, voice, text, instruction
params += ',write_cache_file=1';
if (speed) params += `,speed=${speed}`;
// comma is used to separated parameters in freeswitch tts module
if (instructions) params += `,instructions=${instructions.replace(/\n/g, ' ').replace(',', ';')}`;
if (instructions) params += `,instructions=${instructions.replace(/\n/g, ' ').replace(/,/g, ';')}`;
params += '}';
return {