speechrecorderng 2.23.2 → 2.23.4

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.
@@ -7845,6 +7845,7 @@ class SessionManager extends BasicRecorder {
7845
7845
  this.dataSaved = true;
7846
7846
  this.preRecTimerId = null;
7847
7847
  this.preRecTimerRunning = null;
7848
+ this.postDelay = DEFAULT_POST_REC_DELAY;
7848
7849
  this.postRecTimerId = null;
7849
7850
  this.postRecTimerRunning = null;
7850
7851
  this.maxRecTimerId = null;
@@ -8412,16 +8413,22 @@ class SessionManager extends BasicRecorder {
8412
8413
  this.statusAlertType = 'info';
8413
8414
  this.statusMsg = 'Recording...';
8414
8415
  let preDelay = DEFAULT_PRE_REC_DELAY;
8415
- if (this.promptItem.prerecording) {
8416
+ if (this.promptItem.prerecdelay != null) {
8417
+ preDelay = this.promptItem.prerecdelay;
8418
+ }
8419
+ else if (this.promptItem.prerecording != null) {
8416
8420
  preDelay = this.promptItem.prerecording;
8417
8421
  }
8418
- let postDelay = DEFAULT_POST_REC_DELAY;
8419
- if (this.promptItem.postrecording) {
8420
- postDelay = this.promptItem.postrecording;
8422
+ this.postDelay = DEFAULT_POST_REC_DELAY;
8423
+ if (this.promptItem.postrecdelay != null) {
8424
+ this.postDelay = this.promptItem.postrecdelay;
8425
+ }
8426
+ else if (this.promptItem.postrecording != null) {
8427
+ this.postDelay = this.promptItem.postrecording;
8421
8428
  }
8422
8429
  let maxRecordingTimeMs = MAX_RECORDING_TIME_MS;
8423
8430
  if (this.promptItem.recduration !== null && this.promptItem.recduration !== undefined) {
8424
- maxRecordingTimeMs = preDelay + this.promptItem.recduration + postDelay;
8431
+ maxRecordingTimeMs = preDelay + this.promptItem.recduration + this.postDelay;
8425
8432
  }
8426
8433
  this.maxRecTimerId = window.setTimeout(() => {
8427
8434
  this.stopRecordingMaxRec();
@@ -8452,15 +8459,11 @@ class SessionManager extends BasicRecorder {
8452
8459
  this.startStopSignalState = 2 /* POSTRECORDING */;
8453
8460
  this.transportActions.stopAction.disabled = true;
8454
8461
  this.transportActions.nextAction.disabled = true;
8455
- let postDelay = 500;
8456
- if (this.promptItem.postrecording) {
8457
- postDelay = this.promptItem.postrecording;
8458
- }
8459
8462
  this.postRecTimerId = window.setTimeout(() => {
8460
8463
  this.postRecTimerRunning = false;
8461
8464
  this.status = 6 /* STOPPING_STOP */;
8462
8465
  this.stopRecording();
8463
- }, postDelay);
8466
+ }, this.postDelay);
8464
8467
  this.postRecTimerRunning = true;
8465
8468
  }
8466
8469
  pauseItem() {
@@ -8470,15 +8473,11 @@ class SessionManager extends BasicRecorder {
8470
8473
  this.transportActions.stopAction.disabled = true;
8471
8474
  this.transportActions.nextAction.disabled = true;
8472
8475
  this.transportActions.pauseAction.disabled = true;
8473
- let postDelay = 500;
8474
- if (this.promptItem.postrecording) {
8475
- postDelay = this.promptItem.postrecording;
8476
- }
8477
8476
  this.postRecTimerId = window.setTimeout(() => {
8478
8477
  this.postRecTimerRunning = false;
8479
8478
  this.status = 7 /* STOPPING_PAUSE */;
8480
8479
  this.stopRecording();
8481
- }, postDelay);
8480
+ }, this.postDelay);
8482
8481
  this.postRecTimerRunning = true;
8483
8482
  }
8484
8483
  stopRecording() {
@@ -11798,7 +11797,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
11798
11797
  }]
11799
11798
  }] });
11800
11799
 
11801
- const VERSION = '2.23.2';
11800
+ const VERSION = '2.23.4';
11802
11801
 
11803
11802
  /*
11804
11803
  * Public API Surface of speechrecorderng