whio-api-sdk 1.0.201-beta-staging → 1.0.202-beta-staging
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.
|
@@ -202,9 +202,18 @@ export class WebSocketModule extends BaseClient {
|
|
|
202
202
|
this.socket.on('audio-chunk-received', (data) => {
|
|
203
203
|
this.emit('audio-chunk-received', data);
|
|
204
204
|
});
|
|
205
|
+
this.socket.on('transcription-complete', (data) => {
|
|
206
|
+
this.emit('transcription-complete', data);
|
|
207
|
+
});
|
|
205
208
|
this.socket.on('transcription-queued', (data) => {
|
|
206
209
|
this.emit('transcription-queued', data);
|
|
207
210
|
});
|
|
211
|
+
this.socket.on('summary-complete', (data) => {
|
|
212
|
+
this.emit('summary-complete', data);
|
|
213
|
+
});
|
|
214
|
+
this.socket.on('summary-queued', (data) => {
|
|
215
|
+
this.emit('summary-queued', data);
|
|
216
|
+
});
|
|
208
217
|
this.socket.on('audio-error', (error) => {
|
|
209
218
|
this.emit('audio-error', error);
|
|
210
219
|
});
|
|
@@ -35,7 +35,28 @@ export interface WebSocketEvents {
|
|
|
35
35
|
message: string;
|
|
36
36
|
timestamp: string;
|
|
37
37
|
}) => void;
|
|
38
|
+
'transcription-complete': (data: {
|
|
39
|
+
sessionId: string;
|
|
40
|
+
timestamp: string;
|
|
41
|
+
}) => void;
|
|
42
|
+
'summary-complete': (data: {
|
|
43
|
+
sessionId: string;
|
|
44
|
+
timestamp: string;
|
|
45
|
+
}) => void;
|
|
46
|
+
'summary-queued': (data: {
|
|
47
|
+
sessionId: string;
|
|
48
|
+
timestamp: string;
|
|
49
|
+
}) => void;
|
|
50
|
+
'audio-started': (data: {
|
|
51
|
+
sessionId: string;
|
|
52
|
+
timestamp: string;
|
|
53
|
+
}) => void;
|
|
54
|
+
'audio-stopped': (data: {
|
|
55
|
+
sessionId: string;
|
|
56
|
+
timestamp: string;
|
|
57
|
+
}) => void;
|
|
38
58
|
'audio-error': (error: {
|
|
59
|
+
sessionId: string;
|
|
39
60
|
error: string;
|
|
40
61
|
}) => void;
|
|
41
62
|
'transcription-error': (error: {
|
package/package.json
CHANGED
|
@@ -255,9 +255,21 @@ export class WebSocketModule extends BaseClient {
|
|
|
255
255
|
this.emit('audio-chunk-received', data);
|
|
256
256
|
});
|
|
257
257
|
|
|
258
|
+
this.socket.on('transcription-complete', (data: any) => {
|
|
259
|
+
this.emit('transcription-complete', data);
|
|
260
|
+
});
|
|
261
|
+
|
|
258
262
|
this.socket.on('transcription-queued', (data: any) => {
|
|
259
263
|
this.emit('transcription-queued', data);
|
|
260
264
|
});
|
|
265
|
+
|
|
266
|
+
this.socket.on('summary-complete', (data: any) => {
|
|
267
|
+
this.emit('summary-complete', data);
|
|
268
|
+
});
|
|
269
|
+
|
|
270
|
+
this.socket.on('summary-queued', (data: any) => {
|
|
271
|
+
this.emit('summary-queued', data);
|
|
272
|
+
});
|
|
261
273
|
|
|
262
274
|
this.socket.on('audio-error', (error: any) => {
|
|
263
275
|
this.emit('audio-error', error);
|
|
@@ -38,7 +38,21 @@ export interface WebSocketEvents {
|
|
|
38
38
|
message: string;
|
|
39
39
|
timestamp: string;
|
|
40
40
|
}) => void;
|
|
41
|
-
'
|
|
41
|
+
'transcription-complete': (data: {
|
|
42
|
+
sessionId: string;
|
|
43
|
+
timestamp: string;
|
|
44
|
+
}) => void;
|
|
45
|
+
'summary-complete': (data: {
|
|
46
|
+
sessionId: string;
|
|
47
|
+
timestamp: string;
|
|
48
|
+
}) => void;
|
|
49
|
+
'summary-queued': (data: {
|
|
50
|
+
sessionId: string;
|
|
51
|
+
timestamp: string;
|
|
52
|
+
}) => void;
|
|
53
|
+
'audio-started': (data: { sessionId: string; timestamp: string }) => void;
|
|
54
|
+
'audio-stopped': (data: { sessionId: string; timestamp: string }) => void;
|
|
55
|
+
'audio-error': (error: { sessionId: string; error: string }) => void;
|
|
42
56
|
'transcription-error': (error: { sessionId: string; error: string }) => void;
|
|
43
57
|
'connection-error': (error: Error) => void;
|
|
44
58
|
'reconnecting': (attemptNumber: number) => void;
|