fix google custom voice

This commit is contained in:
Quan HL
2023-10-31 06:24:52 +07:00
parent 507045dcba
commit 6853f0e342
+1 -1
View File
@@ -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'
},