Merge pull request #39 from jambonz/feat/google_custom_voice_01

fix google custom voice
This commit is contained in:
Dave Horton
2023-10-30 19:54:44 -04:00
committed by GitHub
+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'
},