@volley/recognition-client-sdk 0.1.420 → 0.1.423

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/dist/index.js CHANGED
@@ -6159,15 +6159,6 @@ var SimplifiedVGFRecognitionClient = class {
6159
6159
  }
6160
6160
  return;
6161
6161
  }
6162
- if (this.lastSentTerminalUuid === this.expectedUuid) {
6163
- if (this.logger) {
6164
- this.logger(
6165
- "info",
6166
- `[RecogSDK:VGF] Duplicate terminal status suppressed (lastSentTerminalUuid: ${this.lastSentTerminalUuid})`
6167
- );
6168
- }
6169
- return;
6170
- }
6171
6162
  this.state = mapTranscriptionResultToState(this.state, result, this.isRecordingAudio);
6172
6163
  this.notifyStateChange();
6173
6164
  if (clientConfig.onTranscript) {
@@ -6203,9 +6194,6 @@ var SimplifiedVGFRecognitionClient = class {
6203
6194
  }
6204
6195
  return;
6205
6196
  }
6206
- if (this.lastSentTerminalUuid === this.expectedUuid) {
6207
- return;
6208
- }
6209
6197
  this.isRecordingAudio = false;
6210
6198
  this.state = mapErrorToState(this.state, error);
6211
6199
  this.notifyStateChange();
@@ -6323,12 +6311,20 @@ var SimplifiedVGFRecognitionClient = class {
6323
6311
  if (this.logger) {
6324
6312
  this.logger(
6325
6313
  "info",
6326
- `[RecogSDK:VGF] Duplicate terminal status suppressed (lastSentTerminalUuid: ${this.lastSentTerminalUuid})`
6314
+ `[RecogSDK:VGF] Duplicate terminal status suppressed (lastSentTerminalUuid: ${this.lastSentTerminalUuid})`,
6315
+ { transcriptionStatus: this.state.transcriptionStatus, finalTranscript: this.state.finalTranscript }
6327
6316
  );
6328
6317
  }
6329
6318
  return;
6330
6319
  }
6331
6320
  this.lastSentTerminalUuid = this.expectedUuid;
6321
+ if (this.logger) {
6322
+ this.logger(
6323
+ "info",
6324
+ `[RecogSDK:VGF] Sending terminal status (uuid: ${this.expectedUuid})`,
6325
+ { transcriptionStatus: this.state.transcriptionStatus, finalTranscript: this.state.finalTranscript }
6326
+ );
6327
+ }
6332
6328
  }
6333
6329
  if (!this.stateChangeCallback) {
6334
6330
  return;