@volley/recognition-client-sdk 0.1.384 → 0.1.385
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 +0 -16
- package/dist/index.js.map +2 -2
- package/dist/simplified-vgf-recognition-client.d.ts.map +1 -1
- package/dist/vgf-recognition-mapper.d.ts +1 -5
- package/dist/vgf-recognition-mapper.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/simplified-vgf-recognition-client.ts +0 -12
- package/src/vgf-recognition-mapper.ts +1 -23
package/dist/index.js
CHANGED
|
@@ -6013,14 +6013,6 @@ function mapTranscriptionResultToState(currentState, result, isRecording) {
|
|
|
6013
6013
|
}
|
|
6014
6014
|
return newState;
|
|
6015
6015
|
}
|
|
6016
|
-
function mapMetadataToState(currentState, metadata) {
|
|
6017
|
-
const newState = { ...currentState };
|
|
6018
|
-
if (!newState.finalRecordingTimestamp) {
|
|
6019
|
-
newState.finalRecordingTimestamp = (/* @__PURE__ */ new Date()).toISOString();
|
|
6020
|
-
}
|
|
6021
|
-
newState.startRecordingStatus = RecordingStatus.FINISHED;
|
|
6022
|
-
return newState;
|
|
6023
|
-
}
|
|
6024
6016
|
function mapErrorToState(currentState, error) {
|
|
6025
6017
|
return {
|
|
6026
6018
|
...currentState,
|
|
@@ -6132,13 +6124,8 @@ var SimplifiedVGFRecognitionClient = class {
|
|
|
6132
6124
|
`[VGF] Skipping metadata update: UUID mismatch (expected: ${this.expectedUuid}, got: ${metadata.audioUtteranceId})`
|
|
6133
6125
|
);
|
|
6134
6126
|
}
|
|
6135
|
-
if (clientConfig.onMetadata) {
|
|
6136
|
-
clientConfig.onMetadata(metadata);
|
|
6137
|
-
}
|
|
6138
6127
|
return;
|
|
6139
6128
|
}
|
|
6140
|
-
this.state = mapMetadataToState(this.state, metadata);
|
|
6141
|
-
this.notifyStateChange();
|
|
6142
6129
|
if (clientConfig.onMetadata) {
|
|
6143
6130
|
clientConfig.onMetadata(metadata);
|
|
6144
6131
|
}
|
|
@@ -6156,9 +6143,6 @@ var SimplifiedVGFRecognitionClient = class {
|
|
|
6156
6143
|
`[VGF] Skipping error update: UUID mismatch (expected: ${this.expectedUuid}, got: ${error.audioUtteranceId})`
|
|
6157
6144
|
);
|
|
6158
6145
|
}
|
|
6159
|
-
if (clientConfig.onError) {
|
|
6160
|
-
clientConfig.onError(error);
|
|
6161
|
-
}
|
|
6162
6146
|
return;
|
|
6163
6147
|
}
|
|
6164
6148
|
this.isRecordingAudio = false;
|