speechrecorderng 2.22.5 → 2.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8406,7 +8406,7 @@ class SessionManager extends BasicRecorder {
8406
8406
  this.sessionService.patchSessionObserver(this._session, body).subscribe();
8407
8407
  }
8408
8408
  }
8409
- if (this.section.promptphase === 'PRERECORDING') {
8409
+ if (this.section.promptphase === 'PRERECORDING' || this.section.promptphase === 'PRERECORDINGONLY') {
8410
8410
  this.applyPrompt();
8411
8411
  }
8412
8412
  this.statusAlertType = 'info';
@@ -8420,7 +8420,7 @@ class SessionManager extends BasicRecorder {
8420
8420
  postDelay = this.promptItem.postrecording;
8421
8421
  }
8422
8422
  let maxRecordingTimeMs = MAX_RECORDING_TIME_MS;
8423
- if (this.promptItem.recduration) {
8423
+ if (this.promptItem.recduration !== null && this.promptItem.recduration !== undefined) {
8424
8424
  maxRecordingTimeMs = preDelay + this.promptItem.recduration + postDelay;
8425
8425
  }
8426
8426
  this.maxRecTimerId = window.setTimeout(() => {
@@ -8441,6 +8441,9 @@ class SessionManager extends BasicRecorder {
8441
8441
  if (this.section.promptphase === 'RECORDING') {
8442
8442
  this.applyPrompt();
8443
8443
  }
8444
+ if (this.section.promptphase === 'PRERECORDINGONLY') {
8445
+ this.clearPrompt();
8446
+ }
8444
8447
  }, preDelay);
8445
8448
  this.preRecTimerRunning = true;
8446
8449
  }
@@ -11772,7 +11775,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
11772
11775
  }]
11773
11776
  }] });
11774
11777
 
11775
- const VERSION = '2.22.5';
11778
+ const VERSION = '2.23.0';
11776
11779
 
11777
11780
  /*
11778
11781
  * Public API Surface of speechrecorderng