speechrecorderng 2.21.3 → 2.21.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.
@@ -7141,11 +7141,33 @@
7141
7141
  AudioContextProvider._audioContext = null;
7142
7142
 
7143
7143
  var Item = /** @class */ (function () {
7144
- function Item(promptAsString, training) {
7145
- this.promptAsString = promptAsString;
7146
- this.training = training;
7144
+ function Item(_promptAsString, _training, _recording) {
7145
+ this._promptAsString = _promptAsString;
7146
+ this._training = _training;
7147
+ this._recording = _recording;
7147
7148
  this.recs = null;
7148
7149
  }
7150
+ Object.defineProperty(Item.prototype, "promptAsString", {
7151
+ get: function () {
7152
+ return this._promptAsString;
7153
+ },
7154
+ enumerable: false,
7155
+ configurable: true
7156
+ });
7157
+ Object.defineProperty(Item.prototype, "training", {
7158
+ get: function () {
7159
+ return this._training;
7160
+ },
7161
+ enumerable: false,
7162
+ configurable: true
7163
+ });
7164
+ Object.defineProperty(Item.prototype, "recording", {
7165
+ get: function () {
7166
+ return this._recording;
7167
+ },
7168
+ enumerable: false,
7169
+ configurable: true
7170
+ });
7149
7171
  return Item;
7150
7172
  }());
7151
7173
 
@@ -7727,7 +7749,7 @@
7727
7749
  for (var piSectIdx = 0; piSectIdx < pisLen; piSectIdx++) {
7728
7750
  var pi = pis[piSectIdx];
7729
7751
  var promptAsStr = PromptitemUtil.toPlainTextString(pi);
7730
- var it = new Item(promptAsStr, section.training);
7752
+ var it = new Item(promptAsStr, section.training, (!pi.type || pi.type === 'recording'));
7731
7753
  this.items.push(it);
7732
7754
  ln++;
7733
7755
  }
@@ -8409,7 +8431,7 @@
8409
8431
  // search backwards, to gain faster detection of incomplete state
8410
8432
  for (var ri = this.items.length - 1; ri >= 0; ri--) {
8411
8433
  var it = this.items[ri];
8412
- if (!it.training && (!it.recs || it.recs.length == 0)) {
8434
+ if (it.recording && !it.training && (!it.recs || it.recs.length == 0)) {
8413
8435
  complete = false;
8414
8436
  break;
8415
8437
  }
@@ -10079,7 +10101,7 @@
10079
10101
  }]
10080
10102
  }] });
10081
10103
 
10082
- var VERSION = '2.21.3';
10104
+ var VERSION = '2.21.4';
10083
10105
 
10084
10106
  /*
10085
10107
  * Public API Surface of speechrecorderng