mirror of
https://github.com/jambonz/speech-utils.git
synced 2026-07-04 19:31:49 +00:00
Merge pull request #39 from jambonz/feat/google_custom_voice_01
fix google custom voice
This commit is contained in:
+1
-1
@@ -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'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user