@autoscriber/core 0.1.6 → 0.1.8
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/core/assistant-client.d.ts +6 -1
- package/dist/core/assistant-client.d.ts.map +1 -1
- package/dist/index.cjs +79 -20
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +77 -19
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/i18n.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -43,8 +43,13 @@ export declare class AssistantClient {
|
|
|
43
43
|
setFhirContext(resource: unknown): string;
|
|
44
44
|
fillQuestionnaire(context?: unknown): string;
|
|
45
45
|
/** Microphone controls */
|
|
46
|
-
refreshMicrophones(): Promise<void>;
|
|
46
|
+
refreshMicrophones(preferredDevice?: MicrophoneInfo): Promise<void>;
|
|
47
47
|
setSelectedMicrophone(device: MicrophoneInfo): void;
|
|
48
|
+
/**
|
|
49
|
+
* Update the device ID from options and refresh microphones to apply the change.
|
|
50
|
+
* This allows clients to dynamically change the microphone device.
|
|
51
|
+
*/
|
|
52
|
+
setDeviceId(deviceId: string | undefined): Promise<void>;
|
|
48
53
|
/** Internal plumbing */
|
|
49
54
|
private registerWebsocketEvents;
|
|
50
55
|
private setupNetworkListeners;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assistant-client.d.ts","sourceRoot":"","sources":["../../src/core/assistant-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAEhB,cAAc,EAEd,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAwBlB,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAmC;IAEvD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IAEzC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IA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CAAC,0BAA0B;IAKlC,OAAO,CAAC,kBAAkB;IAiB1B,OAAO,CAAC,iBAAiB;IA2DzB,OAAO,CAAC,eAAe;YAWT,oCAAoC;IA8ClD,OAAO,CAAC,qBAAqB;IAqC7B,OAAO,CAAC,aAAa;IA6BrB,OAAO,CAAC,mBAAmB;IAgC3B,OAAO,CAAC,oBAAoB;IAqE5B,OAAO,CAAC,2BAA2B;IAWnC,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,wBAAwB;IAahC,OAAO,CAAC,mBAAmB;IAiB3B;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAe5B;;;OAGG;IACH,OAAO,CAAC,6BAA6B;CA2DtC"}
|
package/dist/index.cjs
CHANGED
|
@@ -21,7 +21,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var src_exports = {};
|
|
22
22
|
__export(src_exports, {
|
|
23
23
|
AssistantClient: () => AssistantClient,
|
|
24
|
-
createAssistant: () => createAssistant
|
|
24
|
+
createAssistant: () => createAssistant,
|
|
25
|
+
translate: () => translate
|
|
25
26
|
});
|
|
26
27
|
module.exports = __toCommonJS(src_exports);
|
|
27
28
|
|
|
@@ -106,6 +107,8 @@ var TRANSLATIONS = {
|
|
|
106
107
|
transcriptionStarted: "Transcription started",
|
|
107
108
|
transcriptionStopped: "Transcription stopped",
|
|
108
109
|
voiceCommandSilence: "Voice command cancelled - silence detected",
|
|
110
|
+
updatingContext: "Updating {{resourceType}} context",
|
|
111
|
+
summarising: "Summarising",
|
|
109
112
|
networkOffline: "\u26A0\uFE0F Network offline - messages will be sent when connection returns",
|
|
110
113
|
transcriptionStoppedOffline: "Transcription stopped - Network offline",
|
|
111
114
|
transcriptionBufferingOffline: "Transcription buffering - will resume when connection returns",
|
|
@@ -138,6 +141,8 @@ var TRANSLATIONS = {
|
|
|
138
141
|
transcriptionStarted: "Transcriptie gestart",
|
|
139
142
|
transcriptionStopped: "Transcriptie gestopt",
|
|
140
143
|
voiceCommandSilence: "Spraakopdracht geannuleerd - stilte gedetecteerd",
|
|
144
|
+
updatingContext: "{{resourceType}} context bijwerken",
|
|
145
|
+
summarising: "Samenvatten",
|
|
141
146
|
networkOffline: "\u26A0\uFE0F Netwerk offline - berichten worden verzonden zodra de verbinding terug is",
|
|
142
147
|
transcriptionStoppedOffline: "Transcriptie gestopt - Netwerk offline",
|
|
143
148
|
transcriptionBufferingOffline: "Transcriptie wordt gebufferd - gaat verder zodra we weer online zijn",
|
|
@@ -170,6 +175,8 @@ var TRANSLATIONS = {
|
|
|
170
175
|
transcriptionStarted: "Transkription gestartet",
|
|
171
176
|
transcriptionStopped: "Transkription gestoppt",
|
|
172
177
|
voiceCommandSilence: "Sprachbefehl abgebrochen \u2013 Stille erkannt",
|
|
178
|
+
updatingContext: "{{resourceType}} Kontext aktualisieren",
|
|
179
|
+
summarising: "Zusammenfassen",
|
|
173
180
|
networkOffline: "\u26A0\uFE0F Netzwerk offline \u2013 Nachrichten werden gesendet, sobald die Verbindung zur\xFCck ist",
|
|
174
181
|
transcriptionStoppedOffline: "Transkription gestoppt \u2013 Netzwerk offline",
|
|
175
182
|
transcriptionBufferingOffline: "Transkription wird gepuffert \u2013 l\xE4uft weiter, sobald die Verbindung zur\xFCck ist",
|
|
@@ -977,7 +984,7 @@ var AssistantClient = class {
|
|
|
977
984
|
label: translate(this.snapshot.language, "transcriptionBufferingOffline"),
|
|
978
985
|
status: "pending",
|
|
979
986
|
type: "transcription",
|
|
980
|
-
metadata: { reason: "offline" }
|
|
987
|
+
metadata: { reason: "offline", translationKey: "transcriptionBufferingOffline" }
|
|
981
988
|
});
|
|
982
989
|
} else if (this.snapshot.recording.mode === "voice_command") {
|
|
983
990
|
this.snapshot.recording.wasTranscriptionActive = false;
|
|
@@ -986,7 +993,8 @@ var AssistantClient = class {
|
|
|
986
993
|
id: generateMessageId(),
|
|
987
994
|
label: translate(this.snapshot.language, "voiceCommandCancelledOffline"),
|
|
988
995
|
status: "error",
|
|
989
|
-
type: "voice"
|
|
996
|
+
type: "voice",
|
|
997
|
+
metadata: { translationKey: "voiceCommandCancelledOffline" }
|
|
990
998
|
});
|
|
991
999
|
this.stopRecording();
|
|
992
1000
|
}
|
|
@@ -995,7 +1003,8 @@ var AssistantClient = class {
|
|
|
995
1003
|
id: generateMessageId(),
|
|
996
1004
|
label: translate(this.snapshot.language, "networkOffline"),
|
|
997
1005
|
status: "error",
|
|
998
|
-
type: "info"
|
|
1006
|
+
type: "info",
|
|
1007
|
+
metadata: { translationKey: "networkOffline" }
|
|
999
1008
|
});
|
|
1000
1009
|
const readyState = this.websocket.readyState;
|
|
1001
1010
|
if (readyState === WebSocket.OPEN || readyState === WebSocket.CONNECTING) {
|
|
@@ -1216,7 +1225,8 @@ var AssistantClient = class {
|
|
|
1216
1225
|
id: transcriptionId,
|
|
1217
1226
|
label: translate(this.snapshot.language, "transcriptionStarted"),
|
|
1218
1227
|
status: "pending",
|
|
1219
|
-
type: "transcription"
|
|
1228
|
+
type: "transcription",
|
|
1229
|
+
metadata: { translationKey: "transcriptionStarted" }
|
|
1220
1230
|
});
|
|
1221
1231
|
if (this.bufferTimer) {
|
|
1222
1232
|
clearInterval(this.bufferTimer);
|
|
@@ -1246,7 +1256,8 @@ var AssistantClient = class {
|
|
|
1246
1256
|
id: transcriptionId,
|
|
1247
1257
|
label: translate(this.snapshot.language, "transcriptionStopped"),
|
|
1248
1258
|
status: "success",
|
|
1249
|
-
type: "transcription"
|
|
1259
|
+
type: "transcription",
|
|
1260
|
+
metadata: { translationKey: "transcriptionStopped" }
|
|
1250
1261
|
});
|
|
1251
1262
|
if (this.audioBuffer.length > 0) {
|
|
1252
1263
|
this.sendBufferedAudio(true);
|
|
@@ -1325,10 +1336,10 @@ var AssistantClient = class {
|
|
|
1325
1336
|
const sanitizedResource = this.sanitizeFhirResource(resource);
|
|
1326
1337
|
this.pushInteraction({
|
|
1327
1338
|
id,
|
|
1328
|
-
label:
|
|
1339
|
+
label: translate(this.snapshot.language, "updatingContext", { resourceType }),
|
|
1329
1340
|
status: "pending",
|
|
1330
1341
|
type: "fhir",
|
|
1331
|
-
metadata: { resourceType }
|
|
1342
|
+
metadata: { translationKey: "updatingContext", resourceType }
|
|
1332
1343
|
});
|
|
1333
1344
|
this.sendMessage({
|
|
1334
1345
|
jsonrpc: "2.0",
|
|
@@ -1352,9 +1363,10 @@ var AssistantClient = class {
|
|
|
1352
1363
|
this.emitMessages();
|
|
1353
1364
|
this.pushInteraction({
|
|
1354
1365
|
id,
|
|
1355
|
-
label: "
|
|
1366
|
+
label: translate(this.snapshot.language, "summarising"),
|
|
1356
1367
|
status: "pending",
|
|
1357
|
-
type: "questionnaire"
|
|
1368
|
+
type: "questionnaire",
|
|
1369
|
+
metadata: { translationKey: "summarising" }
|
|
1358
1370
|
});
|
|
1359
1371
|
this.sendMessage({
|
|
1360
1372
|
jsonrpc: "2.0",
|
|
@@ -1369,14 +1381,47 @@ var AssistantClient = class {
|
|
|
1369
1381
|
return id;
|
|
1370
1382
|
}
|
|
1371
1383
|
/** Microphone controls */
|
|
1372
|
-
async refreshMicrophones() {
|
|
1384
|
+
async refreshMicrophones(preferredDevice) {
|
|
1373
1385
|
const microphones = await getAvailableMicrophones(this.snapshot.language);
|
|
1374
|
-
|
|
1375
|
-
|
|
1386
|
+
let selected;
|
|
1387
|
+
if (this.options.deviceId) {
|
|
1388
|
+
const deviceFromOptions = microphones.find((mic) => mic.deviceId === this.options.deviceId);
|
|
1389
|
+
if (deviceFromOptions) {
|
|
1390
|
+
selected = deviceFromOptions;
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
if (!selected && preferredDevice) {
|
|
1394
|
+
const deviceFromPreferred = microphones.find((mic) => mic.deviceId === preferredDevice.deviceId);
|
|
1395
|
+
if (deviceFromPreferred) {
|
|
1396
|
+
selected = deviceFromPreferred;
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
if (!selected) {
|
|
1400
|
+
const currentSelected = this.snapshot.microphones.selected;
|
|
1401
|
+
const stillAvailable = currentSelected && microphones.find((mic) => mic.deviceId === currentSelected.deviceId);
|
|
1402
|
+
if (stillAvailable) {
|
|
1403
|
+
selected = stillAvailable;
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
if (!selected && typeof window !== "undefined" && window.localStorage && !preferredDevice) {
|
|
1407
|
+
try {
|
|
1408
|
+
const stored = window.localStorage.getItem("autoscriber_selected_microphone");
|
|
1409
|
+
if (stored) {
|
|
1410
|
+
const parsed = JSON.parse(stored);
|
|
1411
|
+
const deviceFromStorage = microphones.find((mic) => mic.deviceId === parsed.deviceId);
|
|
1412
|
+
if (deviceFromStorage) {
|
|
1413
|
+
selected = deviceFromStorage;
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
} catch (error) {
|
|
1417
|
+
this.logger.warn("[Autoscriber] unable to parse stored microphone", error);
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
selected = selected ?? microphones[0] ?? this.snapshot.microphones.selected;
|
|
1376
1421
|
this.snapshot.microphones = {
|
|
1377
1422
|
...this.snapshot.microphones,
|
|
1378
1423
|
available: microphones,
|
|
1379
|
-
selected
|
|
1424
|
+
selected
|
|
1380
1425
|
};
|
|
1381
1426
|
this.emitMicrophones();
|
|
1382
1427
|
}
|
|
@@ -1393,6 +1438,14 @@ var AssistantClient = class {
|
|
|
1393
1438
|
}
|
|
1394
1439
|
this.emitMicrophones();
|
|
1395
1440
|
}
|
|
1441
|
+
/**
|
|
1442
|
+
* Update the device ID from options and refresh microphones to apply the change.
|
|
1443
|
+
* This allows clients to dynamically change the microphone device.
|
|
1444
|
+
*/
|
|
1445
|
+
async setDeviceId(deviceId) {
|
|
1446
|
+
this.options.deviceId = deviceId;
|
|
1447
|
+
await this.refreshMicrophones();
|
|
1448
|
+
}
|
|
1396
1449
|
/** Internal plumbing */
|
|
1397
1450
|
registerWebsocketEvents() {
|
|
1398
1451
|
this.websocket.on("open", () => {
|
|
@@ -1529,18 +1582,21 @@ var AssistantClient = class {
|
|
|
1529
1582
|
}, delay);
|
|
1530
1583
|
}
|
|
1531
1584
|
async initializeMicrophones() {
|
|
1532
|
-
|
|
1585
|
+
let initialDevice;
|
|
1586
|
+
if (this.options.deviceId) {
|
|
1587
|
+
initialDevice = { deviceId: this.options.deviceId, label: "" };
|
|
1588
|
+
} else if (typeof window !== "undefined" && window.localStorage) {
|
|
1533
1589
|
try {
|
|
1534
1590
|
const stored = window.localStorage.getItem("autoscriber_selected_microphone");
|
|
1535
1591
|
if (stored) {
|
|
1536
1592
|
const parsed = JSON.parse(stored);
|
|
1537
|
-
|
|
1593
|
+
initialDevice = parsed;
|
|
1538
1594
|
}
|
|
1539
1595
|
} catch (error) {
|
|
1540
1596
|
this.logger.warn("[Autoscriber] unable to parse stored microphone", error);
|
|
1541
1597
|
}
|
|
1542
1598
|
}
|
|
1543
|
-
await this.refreshMicrophones();
|
|
1599
|
+
await this.refreshMicrophones(initialDevice);
|
|
1544
1600
|
}
|
|
1545
1601
|
async connectWebsocket() {
|
|
1546
1602
|
try {
|
|
@@ -1686,7 +1742,8 @@ var AssistantClient = class {
|
|
|
1686
1742
|
id: generateMessageId(),
|
|
1687
1743
|
label: translate(this.snapshot.language, "offlineBuffering"),
|
|
1688
1744
|
status: "pending",
|
|
1689
|
-
type: "info"
|
|
1745
|
+
type: "info",
|
|
1746
|
+
metadata: { translationKey: "offlineBuffering" }
|
|
1690
1747
|
});
|
|
1691
1748
|
}
|
|
1692
1749
|
this.emitConnection();
|
|
@@ -1864,7 +1921,8 @@ var AssistantClient = class {
|
|
|
1864
1921
|
id: generateMessageId(),
|
|
1865
1922
|
label: translate(this.snapshot.language, "voiceCommandSilence"),
|
|
1866
1923
|
status: "error",
|
|
1867
|
-
type: "voice"
|
|
1924
|
+
type: "voice",
|
|
1925
|
+
metadata: { translationKey: "voiceCommandSilence" }
|
|
1868
1926
|
});
|
|
1869
1927
|
return;
|
|
1870
1928
|
}
|
|
@@ -2122,5 +2180,6 @@ function createAssistant(options) {
|
|
|
2122
2180
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2123
2181
|
0 && (module.exports = {
|
|
2124
2182
|
AssistantClient,
|
|
2125
|
-
createAssistant
|
|
2183
|
+
createAssistant,
|
|
2184
|
+
translate
|
|
2126
2185
|
});
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -79,6 +79,8 @@ var TRANSLATIONS = {
|
|
|
79
79
|
transcriptionStarted: "Transcription started",
|
|
80
80
|
transcriptionStopped: "Transcription stopped",
|
|
81
81
|
voiceCommandSilence: "Voice command cancelled - silence detected",
|
|
82
|
+
updatingContext: "Updating {{resourceType}} context",
|
|
83
|
+
summarising: "Summarising",
|
|
82
84
|
networkOffline: "\u26A0\uFE0F Network offline - messages will be sent when connection returns",
|
|
83
85
|
transcriptionStoppedOffline: "Transcription stopped - Network offline",
|
|
84
86
|
transcriptionBufferingOffline: "Transcription buffering - will resume when connection returns",
|
|
@@ -111,6 +113,8 @@ var TRANSLATIONS = {
|
|
|
111
113
|
transcriptionStarted: "Transcriptie gestart",
|
|
112
114
|
transcriptionStopped: "Transcriptie gestopt",
|
|
113
115
|
voiceCommandSilence: "Spraakopdracht geannuleerd - stilte gedetecteerd",
|
|
116
|
+
updatingContext: "{{resourceType}} context bijwerken",
|
|
117
|
+
summarising: "Samenvatten",
|
|
114
118
|
networkOffline: "\u26A0\uFE0F Netwerk offline - berichten worden verzonden zodra de verbinding terug is",
|
|
115
119
|
transcriptionStoppedOffline: "Transcriptie gestopt - Netwerk offline",
|
|
116
120
|
transcriptionBufferingOffline: "Transcriptie wordt gebufferd - gaat verder zodra we weer online zijn",
|
|
@@ -143,6 +147,8 @@ var TRANSLATIONS = {
|
|
|
143
147
|
transcriptionStarted: "Transkription gestartet",
|
|
144
148
|
transcriptionStopped: "Transkription gestoppt",
|
|
145
149
|
voiceCommandSilence: "Sprachbefehl abgebrochen \u2013 Stille erkannt",
|
|
150
|
+
updatingContext: "{{resourceType}} Kontext aktualisieren",
|
|
151
|
+
summarising: "Zusammenfassen",
|
|
146
152
|
networkOffline: "\u26A0\uFE0F Netzwerk offline \u2013 Nachrichten werden gesendet, sobald die Verbindung zur\xFCck ist",
|
|
147
153
|
transcriptionStoppedOffline: "Transkription gestoppt \u2013 Netzwerk offline",
|
|
148
154
|
transcriptionBufferingOffline: "Transkription wird gepuffert \u2013 l\xE4uft weiter, sobald die Verbindung zur\xFCck ist",
|
|
@@ -950,7 +956,7 @@ var AssistantClient = class {
|
|
|
950
956
|
label: translate(this.snapshot.language, "transcriptionBufferingOffline"),
|
|
951
957
|
status: "pending",
|
|
952
958
|
type: "transcription",
|
|
953
|
-
metadata: { reason: "offline" }
|
|
959
|
+
metadata: { reason: "offline", translationKey: "transcriptionBufferingOffline" }
|
|
954
960
|
});
|
|
955
961
|
} else if (this.snapshot.recording.mode === "voice_command") {
|
|
956
962
|
this.snapshot.recording.wasTranscriptionActive = false;
|
|
@@ -959,7 +965,8 @@ var AssistantClient = class {
|
|
|
959
965
|
id: generateMessageId(),
|
|
960
966
|
label: translate(this.snapshot.language, "voiceCommandCancelledOffline"),
|
|
961
967
|
status: "error",
|
|
962
|
-
type: "voice"
|
|
968
|
+
type: "voice",
|
|
969
|
+
metadata: { translationKey: "voiceCommandCancelledOffline" }
|
|
963
970
|
});
|
|
964
971
|
this.stopRecording();
|
|
965
972
|
}
|
|
@@ -968,7 +975,8 @@ var AssistantClient = class {
|
|
|
968
975
|
id: generateMessageId(),
|
|
969
976
|
label: translate(this.snapshot.language, "networkOffline"),
|
|
970
977
|
status: "error",
|
|
971
|
-
type: "info"
|
|
978
|
+
type: "info",
|
|
979
|
+
metadata: { translationKey: "networkOffline" }
|
|
972
980
|
});
|
|
973
981
|
const readyState = this.websocket.readyState;
|
|
974
982
|
if (readyState === WebSocket.OPEN || readyState === WebSocket.CONNECTING) {
|
|
@@ -1189,7 +1197,8 @@ var AssistantClient = class {
|
|
|
1189
1197
|
id: transcriptionId,
|
|
1190
1198
|
label: translate(this.snapshot.language, "transcriptionStarted"),
|
|
1191
1199
|
status: "pending",
|
|
1192
|
-
type: "transcription"
|
|
1200
|
+
type: "transcription",
|
|
1201
|
+
metadata: { translationKey: "transcriptionStarted" }
|
|
1193
1202
|
});
|
|
1194
1203
|
if (this.bufferTimer) {
|
|
1195
1204
|
clearInterval(this.bufferTimer);
|
|
@@ -1219,7 +1228,8 @@ var AssistantClient = class {
|
|
|
1219
1228
|
id: transcriptionId,
|
|
1220
1229
|
label: translate(this.snapshot.language, "transcriptionStopped"),
|
|
1221
1230
|
status: "success",
|
|
1222
|
-
type: "transcription"
|
|
1231
|
+
type: "transcription",
|
|
1232
|
+
metadata: { translationKey: "transcriptionStopped" }
|
|
1223
1233
|
});
|
|
1224
1234
|
if (this.audioBuffer.length > 0) {
|
|
1225
1235
|
this.sendBufferedAudio(true);
|
|
@@ -1298,10 +1308,10 @@ var AssistantClient = class {
|
|
|
1298
1308
|
const sanitizedResource = this.sanitizeFhirResource(resource);
|
|
1299
1309
|
this.pushInteraction({
|
|
1300
1310
|
id,
|
|
1301
|
-
label:
|
|
1311
|
+
label: translate(this.snapshot.language, "updatingContext", { resourceType }),
|
|
1302
1312
|
status: "pending",
|
|
1303
1313
|
type: "fhir",
|
|
1304
|
-
metadata: { resourceType }
|
|
1314
|
+
metadata: { translationKey: "updatingContext", resourceType }
|
|
1305
1315
|
});
|
|
1306
1316
|
this.sendMessage({
|
|
1307
1317
|
jsonrpc: "2.0",
|
|
@@ -1325,9 +1335,10 @@ var AssistantClient = class {
|
|
|
1325
1335
|
this.emitMessages();
|
|
1326
1336
|
this.pushInteraction({
|
|
1327
1337
|
id,
|
|
1328
|
-
label: "
|
|
1338
|
+
label: translate(this.snapshot.language, "summarising"),
|
|
1329
1339
|
status: "pending",
|
|
1330
|
-
type: "questionnaire"
|
|
1340
|
+
type: "questionnaire",
|
|
1341
|
+
metadata: { translationKey: "summarising" }
|
|
1331
1342
|
});
|
|
1332
1343
|
this.sendMessage({
|
|
1333
1344
|
jsonrpc: "2.0",
|
|
@@ -1342,14 +1353,47 @@ var AssistantClient = class {
|
|
|
1342
1353
|
return id;
|
|
1343
1354
|
}
|
|
1344
1355
|
/** Microphone controls */
|
|
1345
|
-
async refreshMicrophones() {
|
|
1356
|
+
async refreshMicrophones(preferredDevice) {
|
|
1346
1357
|
const microphones = await getAvailableMicrophones(this.snapshot.language);
|
|
1347
|
-
|
|
1348
|
-
|
|
1358
|
+
let selected;
|
|
1359
|
+
if (this.options.deviceId) {
|
|
1360
|
+
const deviceFromOptions = microphones.find((mic) => mic.deviceId === this.options.deviceId);
|
|
1361
|
+
if (deviceFromOptions) {
|
|
1362
|
+
selected = deviceFromOptions;
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
if (!selected && preferredDevice) {
|
|
1366
|
+
const deviceFromPreferred = microphones.find((mic) => mic.deviceId === preferredDevice.deviceId);
|
|
1367
|
+
if (deviceFromPreferred) {
|
|
1368
|
+
selected = deviceFromPreferred;
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
if (!selected) {
|
|
1372
|
+
const currentSelected = this.snapshot.microphones.selected;
|
|
1373
|
+
const stillAvailable = currentSelected && microphones.find((mic) => mic.deviceId === currentSelected.deviceId);
|
|
1374
|
+
if (stillAvailable) {
|
|
1375
|
+
selected = stillAvailable;
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
if (!selected && typeof window !== "undefined" && window.localStorage && !preferredDevice) {
|
|
1379
|
+
try {
|
|
1380
|
+
const stored = window.localStorage.getItem("autoscriber_selected_microphone");
|
|
1381
|
+
if (stored) {
|
|
1382
|
+
const parsed = JSON.parse(stored);
|
|
1383
|
+
const deviceFromStorage = microphones.find((mic) => mic.deviceId === parsed.deviceId);
|
|
1384
|
+
if (deviceFromStorage) {
|
|
1385
|
+
selected = deviceFromStorage;
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
} catch (error) {
|
|
1389
|
+
this.logger.warn("[Autoscriber] unable to parse stored microphone", error);
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
selected = selected ?? microphones[0] ?? this.snapshot.microphones.selected;
|
|
1349
1393
|
this.snapshot.microphones = {
|
|
1350
1394
|
...this.snapshot.microphones,
|
|
1351
1395
|
available: microphones,
|
|
1352
|
-
selected
|
|
1396
|
+
selected
|
|
1353
1397
|
};
|
|
1354
1398
|
this.emitMicrophones();
|
|
1355
1399
|
}
|
|
@@ -1366,6 +1410,14 @@ var AssistantClient = class {
|
|
|
1366
1410
|
}
|
|
1367
1411
|
this.emitMicrophones();
|
|
1368
1412
|
}
|
|
1413
|
+
/**
|
|
1414
|
+
* Update the device ID from options and refresh microphones to apply the change.
|
|
1415
|
+
* This allows clients to dynamically change the microphone device.
|
|
1416
|
+
*/
|
|
1417
|
+
async setDeviceId(deviceId) {
|
|
1418
|
+
this.options.deviceId = deviceId;
|
|
1419
|
+
await this.refreshMicrophones();
|
|
1420
|
+
}
|
|
1369
1421
|
/** Internal plumbing */
|
|
1370
1422
|
registerWebsocketEvents() {
|
|
1371
1423
|
this.websocket.on("open", () => {
|
|
@@ -1502,18 +1554,21 @@ var AssistantClient = class {
|
|
|
1502
1554
|
}, delay);
|
|
1503
1555
|
}
|
|
1504
1556
|
async initializeMicrophones() {
|
|
1505
|
-
|
|
1557
|
+
let initialDevice;
|
|
1558
|
+
if (this.options.deviceId) {
|
|
1559
|
+
initialDevice = { deviceId: this.options.deviceId, label: "" };
|
|
1560
|
+
} else if (typeof window !== "undefined" && window.localStorage) {
|
|
1506
1561
|
try {
|
|
1507
1562
|
const stored = window.localStorage.getItem("autoscriber_selected_microphone");
|
|
1508
1563
|
if (stored) {
|
|
1509
1564
|
const parsed = JSON.parse(stored);
|
|
1510
|
-
|
|
1565
|
+
initialDevice = parsed;
|
|
1511
1566
|
}
|
|
1512
1567
|
} catch (error) {
|
|
1513
1568
|
this.logger.warn("[Autoscriber] unable to parse stored microphone", error);
|
|
1514
1569
|
}
|
|
1515
1570
|
}
|
|
1516
|
-
await this.refreshMicrophones();
|
|
1571
|
+
await this.refreshMicrophones(initialDevice);
|
|
1517
1572
|
}
|
|
1518
1573
|
async connectWebsocket() {
|
|
1519
1574
|
try {
|
|
@@ -1659,7 +1714,8 @@ var AssistantClient = class {
|
|
|
1659
1714
|
id: generateMessageId(),
|
|
1660
1715
|
label: translate(this.snapshot.language, "offlineBuffering"),
|
|
1661
1716
|
status: "pending",
|
|
1662
|
-
type: "info"
|
|
1717
|
+
type: "info",
|
|
1718
|
+
metadata: { translationKey: "offlineBuffering" }
|
|
1663
1719
|
});
|
|
1664
1720
|
}
|
|
1665
1721
|
this.emitConnection();
|
|
@@ -1837,7 +1893,8 @@ var AssistantClient = class {
|
|
|
1837
1893
|
id: generateMessageId(),
|
|
1838
1894
|
label: translate(this.snapshot.language, "voiceCommandSilence"),
|
|
1839
1895
|
status: "error",
|
|
1840
|
-
type: "voice"
|
|
1896
|
+
type: "voice",
|
|
1897
|
+
metadata: { translationKey: "voiceCommandSilence" }
|
|
1841
1898
|
});
|
|
1842
1899
|
return;
|
|
1843
1900
|
}
|
|
@@ -2094,5 +2151,6 @@ function createAssistant(options) {
|
|
|
2094
2151
|
}
|
|
2095
2152
|
export {
|
|
2096
2153
|
AssistantClient,
|
|
2097
|
-
createAssistant
|
|
2154
|
+
createAssistant,
|
|
2155
|
+
translate
|
|
2098
2156
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -75,6 +75,7 @@ export interface AssistantOptions {
|
|
|
75
75
|
websocketConnectionTimeout?: number;
|
|
76
76
|
targetSampleRate?: number;
|
|
77
77
|
onLog?: (level: "info" | "warn" | "error", message: string, metadata?: Record<string, unknown>) => void;
|
|
78
|
+
deviceId?: string;
|
|
78
79
|
}
|
|
79
80
|
export interface SendMessagePayload {
|
|
80
81
|
mediaType: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEnD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,eAAe,GAAG,eAAe,CAAC;AAEvE,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,IAAI,EAAE,MAAM,GAAG,eAAe,GAAG,OAAO,GAAG,MAAM,GAAG,eAAe,CAAC;CACrE;AAED,MAAM,MAAM,aAAa,GACrB,iBAAiB,EAAE,GACnB,MAAM,GACN;IACE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,GACD,IAAI,CAAC;AAET,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;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AAM,CAAA;KAAE,CAAC;IACnD,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B"}
|
package/dist/utils/i18n.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/utils/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/utils/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AA0HlD,wBAAgB,SAAS,CACvB,QAAQ,EAAE,iBAAiB,EAC3B,GAAG,EAAE,MAAM,EACX,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAM,GAC3C,MAAM,CASR;AAED,wBAAgB,gBAAgB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,iBAAiB,CASjE;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAEnF"}
|