This commit is contained in:
Hoan HL
2025-10-30 12:29:09 +07:00
parent 41b26b966b
commit c122129b55

View File

@@ -1345,7 +1345,7 @@ const synthCartesia = async(logger, {
...(model_id === 'sonic-2' && (opts.speed || opts.emotion) && {
experimentalControls: {
...(opts.speed !== null && opts.speed !== undefined && {speed: opts.speed}),
...(opts.emotion && {emotion: opts.emotion}),
...(opts.emotion && {emotion: [opts.emotion]}),
}
}),
},