fivetech commited on
Commit
95659a7
·
1 Parent(s): 7a5d3ea

Piper: asignar speakerId del constructor y base de voces oficial rhasspy

Browse files
Files changed (1) hide show
  1. vendor/piper/piper-tts-web.js +1 -0
vendor/piper/piper-tts-web.js CHANGED
@@ -269,6 +269,7 @@ const _TtsSession = class _TtsSession {
269
  logger == null ? void 0 : logger("New session");
270
  __privateSet(this, _logger, logger);
271
  this.voiceId = voiceId;
 
272
  __privateSet(this, _progressCallback, progress);
273
  this.waitReady = this.init();
274
  __privateSet(this, _wasmPaths, wasmPaths ?? DEFAULT_WASM_PATHS);
 
269
  logger == null ? void 0 : logger("New session");
270
  __privateSet(this, _logger, logger);
271
  this.voiceId = voiceId;
272
+ this.speakerId = speakerId ?? this.speakerId;
273
  __privateSet(this, _progressCallback, progress);
274
  this.waitReady = this.init();
275
  __privateSet(this, _wasmPaths, wasmPaths ?? DEFAULT_WASM_PATHS);