mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-04 02:04:12 +00:00
fix google custom voice can not be used without voice cloning key (#968)
This commit is contained in:
@@ -95,7 +95,7 @@ class TtsTask extends Task {
|
|||||||
} else if (vendor === 'playht') {
|
} else if (vendor === 'playht') {
|
||||||
credentials = credentials || {};
|
credentials = credentials || {};
|
||||||
credentials.voice_engine = this.options.voice_engine || credentials.voice_engine;
|
credentials.voice_engine = this.options.voice_engine || credentials.voice_engine;
|
||||||
} else if (vendor === 'google' && voice.startsWith('custom_')) {
|
} else if (vendor === 'google' && typeof voice === 'string' && voice.startsWith('custom_')) {
|
||||||
const {lookupGoogleCustomVoice} = dbUtils(this.logger, cs.srf);
|
const {lookupGoogleCustomVoice} = dbUtils(this.logger, cs.srf);
|
||||||
const arr = /custom_(.*)/.exec(voice);
|
const arr = /custom_(.*)/.exec(voice);
|
||||||
if (arr) {
|
if (arr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user