This commit is contained in:
Quan HL
2025-05-13 17:58:57 +07:00
parent 545df0b770
commit 9a524f00bc

View File

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