mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
allow set vendor model or engine in runtime (#897)
This commit is contained in:
@@ -81,6 +81,18 @@ class TtsTask extends Task {
|
|||||||
credentials.optimize_streaming_latency = this.options.optimize_streaming_latency
|
credentials.optimize_streaming_latency = this.options.optimize_streaming_latency
|
||||||
|| credentials.optimize_streaming_latency;
|
|| credentials.optimize_streaming_latency;
|
||||||
voice = this.options.voice_id || voice;
|
voice = this.options.voice_id || voice;
|
||||||
|
} else if (vendor === 'rimelabs') {
|
||||||
|
credentials = credentials || {};
|
||||||
|
credentials.model_id = this.options.model_id || credentials.model_id;
|
||||||
|
} else if (vendor === 'whisper') {
|
||||||
|
credentials = credentials || {};
|
||||||
|
credentials.model_id = this.options.model_id || credentials.model_id;
|
||||||
|
} else if (vendor === 'verbio') {
|
||||||
|
credentials = credentials || {};
|
||||||
|
credentials.engine_version = this.options.engine_version || credentials.engine_version;
|
||||||
|
} else if (vendor === 'playht') {
|
||||||
|
credentials = credentials || {};
|
||||||
|
credentials.voice_engine = this.options.voice_engine || credentials.voice_engine;
|
||||||
}
|
}
|
||||||
|
|
||||||
ep.set({
|
ep.set({
|
||||||
|
|||||||
Reference in New Issue
Block a user