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.
- package/esm2020/lib/speechrecorder/script/script.mjs +1 -1
- package/esm2020/lib/speechrecorder/session/sessionmanager.mjs +15 -16
- package/esm2020/lib/spr.module.version.mjs +2 -2
- package/fesm2015/speechrecorderng.mjs +15 -16
- package/fesm2015/speechrecorderng.mjs.map +1 -1
- package/fesm2020/speechrecorderng.mjs +15 -16
- package/fesm2020/speechrecorderng.mjs.map +1 -1
- package/lib/speechrecorder/script/script.d.ts +4 -2
- package/lib/speechrecorder/session/sessionmanager.d.ts +1 -0
- package/lib/spr.module.version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7862,6 +7862,7 @@ class SessionManager extends BasicRecorder {
|
|
|
7862
7862
|
this.dataSaved = true;
|
|
7863
7863
|
this.preRecTimerId = null;
|
|
7864
7864
|
this.preRecTimerRunning = null;
|
|
7865
|
+
this.postDelay = DEFAULT_POST_REC_DELAY;
|
|
7865
7866
|
this.postRecTimerId = null;
|
|
7866
7867
|
this.postRecTimerRunning = null;
|
|
7867
7868
|
this.maxRecTimerId = null;
|
|
@@ -8429,16 +8430,22 @@ class SessionManager extends BasicRecorder {
|
|
|
8429
8430
|
this.statusAlertType = 'info';
|
|
8430
8431
|
this.statusMsg = 'Recording...';
|
|
8431
8432
|
let preDelay = DEFAULT_PRE_REC_DELAY;
|
|
8432
|
-
if (this.promptItem.
|
|
8433
|
+
if (this.promptItem.prerecdelay != null) {
|
|
8434
|
+
preDelay = this.promptItem.prerecdelay;
|
|
8435
|
+
}
|
|
8436
|
+
else if (this.promptItem.prerecording != null) {
|
|
8433
8437
|
preDelay = this.promptItem.prerecording;
|
|
8434
8438
|
}
|
|
8435
|
-
|
|
8436
|
-
if (this.promptItem.
|
|
8437
|
-
postDelay = this.promptItem.
|
|
8439
|
+
this.postDelay = DEFAULT_POST_REC_DELAY;
|
|
8440
|
+
if (this.promptItem.postrecdelay != null) {
|
|
8441
|
+
this.postDelay = this.promptItem.postrecdelay;
|
|
8442
|
+
}
|
|
8443
|
+
else if (this.promptItem.postrecording != null) {
|
|
8444
|
+
this.postDelay = this.promptItem.postrecording;
|
|
8438
8445
|
}
|
|
8439
8446
|
let maxRecordingTimeMs = MAX_RECORDING_TIME_MS;
|
|
8440
8447
|
if (this.promptItem.recduration !== null && this.promptItem.recduration !== undefined) {
|
|
8441
|
-
maxRecordingTimeMs = preDelay + this.promptItem.recduration + postDelay;
|
|
8448
|
+
maxRecordingTimeMs = preDelay + this.promptItem.recduration + this.postDelay;
|
|
8442
8449
|
}
|
|
8443
8450
|
this.maxRecTimerId = window.setTimeout(() => {
|
|
8444
8451
|
this.stopRecordingMaxRec();
|
|
@@ -8469,15 +8476,11 @@ class SessionManager extends BasicRecorder {
|
|
|
8469
8476
|
this.startStopSignalState = 2 /* POSTRECORDING */;
|
|
8470
8477
|
this.transportActions.stopAction.disabled = true;
|
|
8471
8478
|
this.transportActions.nextAction.disabled = true;
|
|
8472
|
-
let postDelay = 500;
|
|
8473
|
-
if (this.promptItem.postrecording) {
|
|
8474
|
-
postDelay = this.promptItem.postrecording;
|
|
8475
|
-
}
|
|
8476
8479
|
this.postRecTimerId = window.setTimeout(() => {
|
|
8477
8480
|
this.postRecTimerRunning = false;
|
|
8478
8481
|
this.status = 6 /* STOPPING_STOP */;
|
|
8479
8482
|
this.stopRecording();
|
|
8480
|
-
}, postDelay);
|
|
8483
|
+
}, this.postDelay);
|
|
8481
8484
|
this.postRecTimerRunning = true;
|
|
8482
8485
|
}
|
|
8483
8486
|
pauseItem() {
|
|
@@ -8487,15 +8490,11 @@ class SessionManager extends BasicRecorder {
|
|
|
8487
8490
|
this.transportActions.stopAction.disabled = true;
|
|
8488
8491
|
this.transportActions.nextAction.disabled = true;
|
|
8489
8492
|
this.transportActions.pauseAction.disabled = true;
|
|
8490
|
-
let postDelay = 500;
|
|
8491
|
-
if (this.promptItem.postrecording) {
|
|
8492
|
-
postDelay = this.promptItem.postrecording;
|
|
8493
|
-
}
|
|
8494
8493
|
this.postRecTimerId = window.setTimeout(() => {
|
|
8495
8494
|
this.postRecTimerRunning = false;
|
|
8496
8495
|
this.status = 7 /* STOPPING_PAUSE */;
|
|
8497
8496
|
this.stopRecording();
|
|
8498
|
-
}, postDelay);
|
|
8497
|
+
}, this.postDelay);
|
|
8499
8498
|
this.postRecTimerRunning = true;
|
|
8500
8499
|
}
|
|
8501
8500
|
stopRecording() {
|
|
@@ -11828,7 +11827,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
|
|
|
11828
11827
|
}]
|
|
11829
11828
|
}] });
|
|
11830
11829
|
|
|
11831
|
-
const VERSION = '2.23.
|
|
11830
|
+
const VERSION = '2.23.4';
|
|
11832
11831
|
|
|
11833
11832
|
/*
|
|
11834
11833
|
* Public API Surface of speechrecorderng
|