add language to playht3.0

This commit is contained in:
Quan HL
2024-10-16 08:14:38 +07:00
parent 7c91c537e4
commit ca0ef76fe1

View File

@@ -800,6 +800,7 @@ const synthPlayHT = async(client, logger, {
params += `,voice_engine=${voice_engine}`;
params += `,synthesize_url=${synthesizeUrl}`;
params += ',write_cache_file=1';
params += `,language=${language}`;
if (opts.quality) params += `,quality=${opts.quality}`;
if (opts.speed) params += `,speed=${opts.speed}`;
if (opts.seed) params += `,style=${opts.seed}`;