@volley/recognition-client-sdk 0.1.294 → 0.1.295
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 +3 -6
- package/dist/index.js.map +2 -2
- package/dist/simplified-vgf-recognition-client.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/recognition-client.spec.ts +37 -50
- package/src/simplified-vgf-recognition-client.spec.ts +34 -10
- package/src/simplified-vgf-recognition-client.ts +10 -12
package/dist/index.js
CHANGED
|
@@ -6127,7 +6127,8 @@ var SimplifiedVGFRecognitionClient = class {
|
|
|
6127
6127
|
await this.client.stopRecording();
|
|
6128
6128
|
}
|
|
6129
6129
|
stopAbnormally() {
|
|
6130
|
-
|
|
6130
|
+
const clientState = this.client.getState();
|
|
6131
|
+
if (clientState === "stopping" /* STOPPING */ || clientState === "stopped" /* STOPPED */ || clientState === "failed" /* FAILED */) {
|
|
6131
6132
|
return;
|
|
6132
6133
|
}
|
|
6133
6134
|
this.isRecordingAudio = false;
|
|
@@ -6135,17 +6136,13 @@ var SimplifiedVGFRecognitionClient = class {
|
|
|
6135
6136
|
this.state = {
|
|
6136
6137
|
...this.state,
|
|
6137
6138
|
transcriptionStatus: TranscriptionStatus.ABORTED,
|
|
6138
|
-
finalTranscript: "",
|
|
6139
6139
|
startRecordingStatus: RecordingStatus.FINISHED,
|
|
6140
6140
|
finalRecordingTimestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
6141
6141
|
finalTranscriptionTimestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
6142
6142
|
};
|
|
6143
6143
|
this.notifyStateChange();
|
|
6144
6144
|
}
|
|
6145
|
-
|
|
6146
|
-
if (clientState !== "stopped" /* STOPPED */ && clientState !== "failed" /* FAILED */) {
|
|
6147
|
-
this.client.stopAbnormally();
|
|
6148
|
-
}
|
|
6145
|
+
this.client.stopAbnormally();
|
|
6149
6146
|
}
|
|
6150
6147
|
// Pure delegation methods - no state logic
|
|
6151
6148
|
getAudioUtteranceId() {
|