Piper: asignar speakerId del constructor y base de voces oficial rhasspy
Browse files
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);
|