mirror of
https://github.com/jambonz/speech-utils.git
synced 2026-07-23 20:51:49 +00:00
wip
This commit is contained in:
+2
-1
@@ -757,7 +757,7 @@ const synthElevenlabs = async(logger, {
|
||||
};
|
||||
|
||||
const synthPlayHT = async(client, logger, {
|
||||
credentials, options, stats, voice, text, renderForCaching, disableTtsStreaming
|
||||
credentials, options, stats, voice, language, text, renderForCaching, disableTtsStreaming
|
||||
}) => {
|
||||
const {api_key, user_id, voice_engine, options: credOpts} = credentials;
|
||||
const opts = !!options && Object.keys(options).length !== 0 ? options : JSON.parse(credOpts || '{}');
|
||||
@@ -827,6 +827,7 @@ const synthPlayHT = async(client, logger, {
|
||||
|
||||
const mp3 = await post(synthesizeUrl, {
|
||||
text,
|
||||
...(voice_engine === 'Play3.0' && { language }),
|
||||
voice,
|
||||
voice_engine,
|
||||
output_format: 'mp3',
|
||||
|
||||
Reference in New Issue
Block a user