From 6853f0e342fb865ae78bdb173b3d52631e5f479f Mon Sep 17 00:00:00 2001 From: Quan HL Date: Tue, 31 Oct 2023 06:24:52 +0700 Subject: [PATCH] fix google custom voice --- lib/synth-audio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/synth-audio.js b/lib/synth-audio.js index 1ba7cc0..49c2798 100644 --- a/lib/synth-audio.js +++ b/lib/synth-audio.js @@ -258,7 +258,7 @@ const synthGoogle = async(logger, {credentials, stats, language, voice, gender, const opts = { voice: { ...(typeof voice === 'string' && {name: voice}), - ...(typeof voice === 'object' && {custom_voice: voice}), + ...(typeof voice === 'object' && {customVoice: voice}), languageCode: language, ssmlGender: gender || 'SSML_VOICE_GENDER_UNSPECIFIED' },