get elevenlabs options from syntheizier.options

This commit is contained in:
Quan HL
2023-11-30 15:56:22 +07:00
parent 689fab6857
commit 3ac5a98e3a
+1 -1
View File
@@ -587,7 +587,7 @@ const synthCustomVendor = async(logger, {credentials, stats, language, voice, te
const synthElevenlabs = async(logger, {credentials, options, stats, language, voice, text}) => {
const {api_key, model_id, options: credOpts} = credentials;
const opts = JSON.parse(options || credOpts || '{}');
const opts = options || JSON.parse(credOpts || '{}');
const optimize_streaming_latency = opts.optimize_streaming_latency ?
`?optimize_streaming_latency=${opts.optimize_streaming_latency}` : '';
try {