@dxos/plugin-transcription 0.8.4-main.ae835ea → 0.8.4-main.bcb3aa67d6
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/lib/browser/blueprints/index.mjs +31 -0
- package/dist/lib/browser/blueprints/index.mjs.map +7 -0
- package/dist/lib/browser/chunk-HOOPZ7EM.mjs +35 -0
- package/dist/lib/browser/chunk-HOOPZ7EM.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-RIUSFL62.mjs +112 -0
- package/dist/lib/browser/chunk-RIUSFL62.mjs.map +7 -0
- package/dist/lib/browser/chunk-YXU2ZO6W.mjs +17 -0
- package/dist/lib/browser/chunk-YXU2ZO6W.mjs.map +7 -0
- package/dist/lib/browser/create-IZPB7VZW.mjs +19 -0
- package/dist/lib/browser/create-IZPB7VZW.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +1178 -97
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/open-SN5O5I6X.mjs +29 -0
- package/dist/lib/browser/open-SN5O5I6X.mjs.map +7 -0
- package/dist/lib/browser/operations/index.mjs +13 -0
- package/dist/lib/browser/operations/index.mjs.map +7 -0
- package/dist/lib/browser/summarize-5MZENAU5.mjs +71 -0
- package/dist/lib/browser/summarize-5MZENAU5.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +4 -6
- package/dist/lib/node-esm/blueprints/index.mjs +32 -0
- package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-3GSFEN4L.mjs +113 -0
- package/dist/lib/node-esm/chunk-3GSFEN4L.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-BR2R6PCT.mjs +19 -0
- package/dist/lib/node-esm/chunk-BR2R6PCT.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-NVM2QUMX.mjs +37 -0
- package/dist/lib/node-esm/chunk-NVM2QUMX.mjs.map +7 -0
- package/dist/lib/node-esm/create-TQDGXQBL.mjs +20 -0
- package/dist/lib/node-esm/create-TQDGXQBL.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +1178 -97
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/open-4GAAWWKJ.mjs +30 -0
- package/dist/lib/node-esm/open-4GAAWWKJ.mjs.map +7 -0
- package/dist/lib/node-esm/operations/index.mjs +14 -0
- package/dist/lib/node-esm/operations/index.mjs.map +7 -0
- package/dist/lib/node-esm/summarize-RVOSRHEC.mjs +72 -0
- package/dist/lib/node-esm/summarize-RVOSRHEC.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +4 -6
- package/dist/types/src/TranscriptionPlugin.d.ts +2 -1
- package/dist/types/src/TranscriptionPlugin.d.ts.map +1 -1
- package/dist/types/src/blueprints/index.d.ts +2 -0
- package/dist/types/src/blueprints/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/transcription-blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/transcription-blueprint.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition.d.ts +5 -4
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +6 -5
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +3 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/transcriber.d.ts +4 -3
- package/dist/types/src/capabilities/transcriber.d.ts.map +1 -1
- package/dist/types/src/components/Transcription/Transcription.d.ts +22 -0
- package/dist/types/src/components/Transcription/Transcription.d.ts.map +1 -0
- package/dist/types/src/components/Transcription/Transcription.stories.d.ts +40 -0
- package/dist/types/src/components/Transcription/Transcription.stories.d.ts.map +1 -0
- package/dist/types/src/components/Transcription/index.d.ts +2 -0
- package/dist/types/src/components/Transcription/index.d.ts.map +1 -0
- package/dist/types/src/components/Transcription/transcription-extension.d.ts +15 -0
- package/dist/types/src/components/Transcription/transcription-extension.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +1 -3
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/components/stories/FileTranscription.stories.d.ts +3 -3
- package/dist/types/src/components/stories/FileTranscription.stories.d.ts.map +1 -1
- package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts +2 -2
- package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts.map +1 -1
- package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts +5 -5
- package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts.map +1 -1
- package/dist/types/src/components/stories/TranscriptionStory.d.ts +2 -2
- package/dist/types/src/components/stories/TranscriptionStory.d.ts.map +1 -1
- package/dist/types/src/containers/TranscriptionContainer/TranscriptionContainer.d.ts +6 -0
- package/dist/types/src/containers/TranscriptionContainer/TranscriptionContainer.d.ts.map +1 -0
- package/dist/types/src/containers/TranscriptionContainer/index.d.ts +3 -0
- package/dist/types/src/containers/TranscriptionContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +3 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/hooks/useQueueModelAdapter.d.ts +1 -1
- package/dist/types/src/hooks/useQueueModelAdapter.d.ts.map +1 -1
- package/dist/types/src/hooks/useTranscriber.d.ts +1 -1
- package/dist/types/src/hooks/useTranscriber.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/create.d.ts +5 -0
- package/dist/types/src/operations/create.d.ts.map +1 -0
- package/dist/types/src/operations/definitions.d.ts +905 -0
- package/dist/types/src/operations/definitions.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +4 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/open.d.ts +5 -0
- package/dist/types/src/operations/open.d.ts.map +1 -0
- package/dist/types/src/operations/summarize.d.ts +8 -0
- package/dist/types/src/operations/summarize.d.ts.map +1 -0
- package/dist/types/src/segments-normalization/message-normalizer.d.ts +5 -5
- package/dist/types/src/segments-normalization/message-normalizer.d.ts.map +1 -1
- package/dist/types/src/segments-normalization/normalization.d.ts +360 -474
- package/dist/types/src/segments-normalization/normalization.d.ts.map +1 -1
- package/dist/types/src/segments-normalization/utils.d.ts +2 -2
- package/dist/types/src/segments-normalization/utils.d.ts.map +1 -1
- package/dist/types/src/testing/testing.d.ts +9 -9
- package/dist/types/src/testing/testing.d.ts.map +1 -1
- package/dist/types/src/transcriber/media-stream-recorder.d.ts +2 -2
- package/dist/types/src/transcriber/media-stream-recorder.d.ts.map +1 -1
- package/dist/types/src/transcriber/transcriber.d.ts +4 -4
- package/dist/types/src/transcriber/transcriber.d.ts.map +1 -1
- package/dist/types/src/transcriber/transcription-manager.d.ts +9 -6
- package/dist/types/src/transcriber/transcription-manager.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +7 -7
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +18 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +1 -2
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/util/index.d.ts +1 -0
- package/dist/types/src/util/index.d.ts.map +1 -1
- package/dist/types/src/util/render-byline.d.ts +4 -0
- package/dist/types/src/util/render-byline.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +105 -70
- package/src/TranscriptionPlugin.tsx +40 -60
- package/src/blueprints/index.ts +5 -0
- package/src/blueprints/transcription-blueprint.ts +30 -0
- package/src/capabilities/blueprint-definition.ts +10 -24
- package/src/capabilities/index.ts +9 -7
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/react-surface.tsx +21 -13
- package/src/capabilities/transcriber.ts +51 -43
- package/src/components/{Transcript/Transcript.stories.tsx → Transcription/Transcription.stories.tsx} +49 -45
- package/src/components/Transcription/Transcription.tsx +65 -0
- package/src/components/{Transcript → Transcription}/index.ts +1 -1
- package/src/components/{Transcript/transcript-extension.ts → Transcription/transcription-extension.ts} +13 -9
- package/src/components/index.ts +1 -6
- package/src/components/stories/FileTranscription.stories.tsx +30 -36
- package/src/components/stories/KeyWordRecognition.stories.tsx +6 -6
- package/src/components/stories/MicrophoneTranscription.stories.tsx +53 -74
- package/src/components/stories/TranscriptionStory.tsx +7 -9
- package/src/containers/TranscriptionContainer/TranscriptionContainer.tsx +32 -0
- package/src/containers/TranscriptionContainer/index.ts +7 -0
- package/src/containers/index.ts +7 -0
- package/src/hooks/useQueueModelAdapter.ts +1 -1
- package/src/hooks/useTranscriber.ts +8 -3
- package/src/hooks/useVoiceInput.ts +2 -2
- package/src/index.ts +1 -1
- package/src/meta.ts +3 -3
- package/src/model/model.test.ts +20 -14
- package/src/operations/create.ts +22 -0
- package/src/operations/definitions.ts +102 -0
- package/src/operations/index.ts +13 -0
- package/src/operations/open.ts +31 -0
- package/src/{functions → operations}/summarize.ts +41 -47
- package/src/segments-normalization/message-normalizer.ts +18 -13
- package/src/segments-normalization/normalization.test.ts +6 -11
- package/src/segments-normalization/normalization.ts +34 -72
- package/src/segments-normalization/utils.ts +2 -2
- package/src/testing/testing.ts +28 -28
- package/src/transcriber/media-stream-recorder.ts +3 -3
- package/src/transcriber/transcriber.browser.test.ts +4 -4
- package/src/transcriber/transcriber.ts +7 -7
- package/src/transcriber/transcription-manager.ts +21 -15
- package/src/translations.ts +7 -7
- package/src/{capabilities → types}/capabilities.ts +10 -10
- package/src/types/index.ts +1 -2
- package/src/util/index.ts +1 -0
- package/src/util/render-byline.ts +33 -0
- package/dist/lib/browser/TranscriptContainer-2GSL2XB5.mjs +0 -11
- package/dist/lib/browser/blueprint-definition-UAAJYVLZ.mjs +0 -150
- package/dist/lib/browser/blueprint-definition-UAAJYVLZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-3MKZ2MNQ.mjs +0 -16
- package/dist/lib/browser/chunk-3MKZ2MNQ.mjs.map +0 -7
- package/dist/lib/browser/chunk-535OJKFO.mjs +0 -8
- package/dist/lib/browser/chunk-535OJKFO.mjs.map +0 -7
- package/dist/lib/browser/chunk-7DR6HZEF.mjs +0 -732
- package/dist/lib/browser/chunk-7DR6HZEF.mjs.map +0 -7
- package/dist/lib/browser/chunk-VBUIO677.mjs +0 -29
- package/dist/lib/browser/chunk-VBUIO677.mjs.map +0 -7
- package/dist/lib/browser/chunk-W7WKZTM4.mjs +0 -63
- package/dist/lib/browser/chunk-W7WKZTM4.mjs.map +0 -7
- package/dist/lib/browser/chunk-WH36ENNE.mjs +0 -466
- package/dist/lib/browser/chunk-WH36ENNE.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-ZTKTEAQX.mjs +0 -25
- package/dist/lib/browser/intent-resolver-ZTKTEAQX.mjs.map +0 -7
- package/dist/lib/browser/react-surface-KA32A72I.mjs +0 -34
- package/dist/lib/browser/react-surface-KA32A72I.mjs.map +0 -7
- package/dist/lib/browser/transcriber-LWOLYQHC.mjs +0 -56
- package/dist/lib/browser/transcriber-LWOLYQHC.mjs.map +0 -7
- package/dist/lib/node-esm/TranscriptContainer-GRLDCESB.mjs +0 -12
- package/dist/lib/node-esm/blueprint-definition-Z3LTZ3ID.mjs +0 -151
- package/dist/lib/node-esm/blueprint-definition-Z3LTZ3ID.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-K4AZOB5Y.mjs +0 -733
- package/dist/lib/node-esm/chunk-K4AZOB5Y.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-OLMSTF3M.mjs +0 -64
- package/dist/lib/node-esm/chunk-OLMSTF3M.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-Q6WD7L2J.mjs +0 -10
- package/dist/lib/node-esm/chunk-Q6WD7L2J.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SWUVPFKR.mjs +0 -17
- package/dist/lib/node-esm/chunk-SWUVPFKR.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-YFN4FJFK.mjs +0 -467
- package/dist/lib/node-esm/chunk-YFN4FJFK.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-YVNQN2J6.mjs +0 -30
- package/dist/lib/node-esm/chunk-YVNQN2J6.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-55WH2GY6.mjs +0 -26
- package/dist/lib/node-esm/intent-resolver-55WH2GY6.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-GU7LW2JO.mjs +0 -35
- package/dist/lib/node-esm/react-surface-GU7LW2JO.mjs.map +0 -7
- package/dist/lib/node-esm/transcriber-UGB7ECX6.mjs +0 -57
- package/dist/lib/node-esm/transcriber-UGB7ECX6.mjs.map +0 -7
- package/dist/types/src/capabilities/capabilities.d.ts +0 -17
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/components/Transcript/Transcript.d.ts +0 -20
- package/dist/types/src/components/Transcript/Transcript.d.ts.map +0 -1
- package/dist/types/src/components/Transcript/Transcript.stories.d.ts +0 -39
- package/dist/types/src/components/Transcript/Transcript.stories.d.ts.map +0 -1
- package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts +0 -28
- package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts.map +0 -1
- package/dist/types/src/components/Transcript/index.d.ts +0 -2
- package/dist/types/src/components/Transcript/index.d.ts.map +0 -1
- package/dist/types/src/components/Transcript/transcript-extension.d.ts +0 -15
- package/dist/types/src/components/Transcript/transcript-extension.d.ts.map +0 -1
- package/dist/types/src/components/TranscriptContainer.d.ts +0 -9
- package/dist/types/src/components/TranscriptContainer.d.ts.map +0 -1
- package/dist/types/src/functions/index.d.ts +0 -3
- package/dist/types/src/functions/index.d.ts.map +0 -1
- package/dist/types/src/functions/open.d.ts +0 -7
- package/dist/types/src/functions/open.d.ts.map +0 -1
- package/dist/types/src/functions/summarize.d.ts +0 -11
- package/dist/types/src/functions/summarize.d.ts.map +0 -1
- package/dist/types/src/types/Transcript.d.ts +0 -30
- package/dist/types/src/types/Transcript.d.ts.map +0 -1
- package/dist/types/src/types/TranscriptAction.d.ts +0 -23
- package/dist/types/src/types/TranscriptAction.d.ts.map +0 -1
- package/src/capabilities/intent-resolver.ts +0 -18
- package/src/components/Transcript/Transcript.tsx +0 -93
- package/src/components/Transcript/deprecated/OldTranscript.tsx +0 -260
- package/src/components/TranscriptContainer.tsx +0 -36
- package/src/functions/index.ts +0 -6
- package/src/functions/open.ts +0 -39
- package/src/types/Transcript.ts +0 -44
- package/src/types/TranscriptAction.ts +0 -24
- /package/dist/lib/browser/{TranscriptContainer-2GSL2XB5.mjs.map → chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/lib/node-esm/{TranscriptContainer-GRLDCESB.mjs.map → chunk-HSLMI22Q.mjs.map} +0 -0
package/package.json
CHANGED
|
@@ -1,29 +1,62 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-transcription",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.bcb3aa67d6",
|
|
4
4
|
"description": "Voice transcription.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/dxos/dxos"
|
|
10
|
+
},
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"author": "DXOS.org",
|
|
9
13
|
"type": "module",
|
|
14
|
+
"imports": {
|
|
15
|
+
"#blueprints": "./src/blueprints/index.ts",
|
|
16
|
+
"#capabilities": "./src/capabilities/index.ts",
|
|
17
|
+
"#components": "./src/components/index.ts",
|
|
18
|
+
"#containers": "./src/containers/index.ts",
|
|
19
|
+
"#hooks": "./src/hooks/index.ts",
|
|
20
|
+
"#meta": "./src/meta.ts",
|
|
21
|
+
"#operations": "./src/operations/index.ts",
|
|
22
|
+
"#testing": "./src/testing/index.ts",
|
|
23
|
+
"#types": "./src/types/index.ts"
|
|
24
|
+
},
|
|
10
25
|
"exports": {
|
|
11
26
|
".": {
|
|
12
27
|
"source": "./src/index.ts",
|
|
13
|
-
"types": "./dist/types/src/index.d.ts",
|
|
14
28
|
"browser": "./dist/lib/browser/index.mjs",
|
|
15
|
-
"node": "./dist/lib/node-esm/index.mjs"
|
|
29
|
+
"node": "./dist/lib/node-esm/index.mjs",
|
|
30
|
+
"types": "./dist/types/src/index.d.ts"
|
|
31
|
+
},
|
|
32
|
+
"./blueprints": {
|
|
33
|
+
"source": "./src/blueprints/index.ts",
|
|
34
|
+
"browser": "./dist/lib/browser/blueprints/index.mjs",
|
|
35
|
+
"node": "./dist/lib/node-esm/blueprints/index.mjs",
|
|
36
|
+
"types": "./dist/types/src/blueprints/index.d.ts"
|
|
37
|
+
},
|
|
38
|
+
"./operations": {
|
|
39
|
+
"source": "./src/operations/index.ts",
|
|
40
|
+
"browser": "./dist/lib/browser/operations/index.mjs",
|
|
41
|
+
"node": "./dist/lib/node-esm/operations/index.mjs",
|
|
42
|
+
"types": "./dist/types/src/operations/index.d.ts"
|
|
16
43
|
},
|
|
17
44
|
"./types": {
|
|
18
45
|
"source": "./src/types/index.ts",
|
|
19
|
-
"types": "./dist/types/src/types/index.d.ts",
|
|
20
46
|
"browser": "./dist/lib/browser/types/index.mjs",
|
|
21
|
-
"node": "./dist/lib/node-esm/types/index.mjs"
|
|
47
|
+
"node": "./dist/lib/node-esm/types/index.mjs",
|
|
48
|
+
"types": "./dist/types/src/types/index.d.ts"
|
|
22
49
|
}
|
|
23
50
|
},
|
|
24
51
|
"types": "dist/types/src/index.d.ts",
|
|
25
52
|
"typesVersions": {
|
|
26
53
|
"*": {
|
|
54
|
+
"blueprints": [
|
|
55
|
+
"dist/types/src/blueprints/index.d.ts"
|
|
56
|
+
],
|
|
57
|
+
"operations": [
|
|
58
|
+
"dist/types/src/operations/index.d.ts"
|
|
59
|
+
],
|
|
27
60
|
"types": [
|
|
28
61
|
"dist/types/src/types/index.d.ts"
|
|
29
62
|
]
|
|
@@ -36,82 +69,84 @@
|
|
|
36
69
|
"dependencies": {
|
|
37
70
|
"@codemirror/state": "^6.5.2",
|
|
38
71
|
"@codemirror/view": "^6.38.4",
|
|
39
|
-
"
|
|
40
|
-
"@preact/signals-core": "^1.12.1",
|
|
41
|
-
"date-fns": "^3.3.1",
|
|
72
|
+
"date-fns": "^3.6.0",
|
|
42
73
|
"extendable-media-recorder": "^9.2.19",
|
|
43
74
|
"extendable-media-recorder-wav-encoder": "^7.0.123",
|
|
44
75
|
"main-thread-scheduling": "^14.1.1",
|
|
45
76
|
"react-resize-detector": "^11.0.1",
|
|
46
|
-
"react-router-dom": "^6.
|
|
77
|
+
"react-router-dom": "^6.30.3",
|
|
47
78
|
"react-use": "^17.5.1",
|
|
48
79
|
"wavefile": "^11.0.0",
|
|
49
|
-
"@dxos/ai": "0.8.4-main.
|
|
50
|
-
"@dxos/app-
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/echo-db": "0.8.4-main.
|
|
61
|
-
"@dxos/functions": "0.8.4-main.
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/plugin-client": "0.8.4-main.
|
|
68
|
-
"@dxos/plugin-
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/plugin-
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/plugin-
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/
|
|
75
|
-
"@dxos/react-edge-client": "0.8.4-main.
|
|
76
|
-
"@dxos/react-
|
|
77
|
-
"@dxos/react-ui-
|
|
78
|
-
"@dxos/react-ui-
|
|
79
|
-
"@dxos/react-ui-
|
|
80
|
-
"@dxos/react-ui-
|
|
81
|
-
"@dxos/react-ui-
|
|
82
|
-
"@dxos/react-ui-
|
|
83
|
-
"@dxos/
|
|
84
|
-
"@dxos/
|
|
85
|
-
"@dxos/
|
|
80
|
+
"@dxos/ai": "0.8.4-main.bcb3aa67d6",
|
|
81
|
+
"@dxos/app-toolkit": "0.8.4-main.bcb3aa67d6",
|
|
82
|
+
"@dxos/app-framework": "0.8.4-main.bcb3aa67d6",
|
|
83
|
+
"@dxos/blueprints": "0.8.4-main.bcb3aa67d6",
|
|
84
|
+
"@dxos/assistant": "0.8.4-main.bcb3aa67d6",
|
|
85
|
+
"@dxos/codec-protobuf": "0.8.4-main.bcb3aa67d6",
|
|
86
|
+
"@dxos/client": "0.8.4-main.bcb3aa67d6",
|
|
87
|
+
"@dxos/async": "0.8.4-main.bcb3aa67d6",
|
|
88
|
+
"@dxos/context": "0.8.4-main.bcb3aa67d6",
|
|
89
|
+
"@dxos/debug": "0.8.4-main.bcb3aa67d6",
|
|
90
|
+
"@dxos/display-name": "0.8.4-main.bcb3aa67d6",
|
|
91
|
+
"@dxos/echo-db": "0.8.4-main.bcb3aa67d6",
|
|
92
|
+
"@dxos/functions": "0.8.4-main.bcb3aa67d6",
|
|
93
|
+
"@dxos/echo": "0.8.4-main.bcb3aa67d6",
|
|
94
|
+
"@dxos/functions-runtime": "0.8.4-main.bcb3aa67d6",
|
|
95
|
+
"@dxos/keys": "0.8.4-main.bcb3aa67d6",
|
|
96
|
+
"@dxos/log": "0.8.4-main.bcb3aa67d6",
|
|
97
|
+
"@dxos/invariant": "0.8.4-main.bcb3aa67d6",
|
|
98
|
+
"@dxos/plugin-client": "0.8.4-main.bcb3aa67d6",
|
|
99
|
+
"@dxos/plugin-graph": "0.8.4-main.bcb3aa67d6",
|
|
100
|
+
"@dxos/operation": "0.8.4-main.bcb3aa67d6",
|
|
101
|
+
"@dxos/plugin-deck": "0.8.4-main.bcb3aa67d6",
|
|
102
|
+
"@dxos/plugin-markdown": "0.8.4-main.bcb3aa67d6",
|
|
103
|
+
"@dxos/plugin-space": "0.8.4-main.bcb3aa67d6",
|
|
104
|
+
"@dxos/protocols": "0.8.4-main.bcb3aa67d6",
|
|
105
|
+
"@dxos/plugin-thread": "0.8.4-main.bcb3aa67d6",
|
|
106
|
+
"@dxos/react-edge-client": "0.8.4-main.bcb3aa67d6",
|
|
107
|
+
"@dxos/react-client": "0.8.4-main.bcb3aa67d6",
|
|
108
|
+
"@dxos/react-ui-attention": "0.8.4-main.bcb3aa67d6",
|
|
109
|
+
"@dxos/react-ui-components": "0.8.4-main.bcb3aa67d6",
|
|
110
|
+
"@dxos/react-ui-editor": "0.8.4-main.bcb3aa67d6",
|
|
111
|
+
"@dxos/react-ui-form": "0.8.4-main.bcb3aa67d6",
|
|
112
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.bcb3aa67d6",
|
|
113
|
+
"@dxos/react-ui-sfx": "0.8.4-main.bcb3aa67d6",
|
|
114
|
+
"@dxos/react-ui-grid": "0.8.4-main.bcb3aa67d6",
|
|
115
|
+
"@dxos/schema": "0.8.4-main.bcb3aa67d6",
|
|
116
|
+
"@dxos/react-ui-stack": "0.8.4-main.bcb3aa67d6",
|
|
117
|
+
"@dxos/tracing": "0.8.4-main.bcb3aa67d6",
|
|
118
|
+
"@dxos/types": "0.8.4-main.bcb3aa67d6",
|
|
119
|
+
"@dxos/ui-editor": "0.8.4-main.bcb3aa67d6",
|
|
120
|
+
"@dxos/util": "0.8.4-main.bcb3aa67d6"
|
|
86
121
|
},
|
|
87
122
|
"devDependencies": {
|
|
88
|
-
"@effect-
|
|
89
|
-
"@effect/platform": "0.
|
|
123
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
124
|
+
"@effect/platform": "0.94.4",
|
|
90
125
|
"@types/dom-speech-recognition": "^0.0.6",
|
|
91
|
-
"@types/react": "~19.2.
|
|
92
|
-
"effect": "3.
|
|
93
|
-
"react": "~19.2.
|
|
94
|
-
"react-dom": "~19.2.
|
|
95
|
-
"tailwindcss": "
|
|
96
|
-
"@dxos/plugin-preview": "0.8.4-main.
|
|
97
|
-
"@dxos/plugin-
|
|
98
|
-
"@dxos/
|
|
99
|
-
"@dxos/
|
|
100
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
101
|
-
"@dxos/
|
|
102
|
-
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.
|
|
103
|
-
"@dxos/react-ui
|
|
104
|
-
"@dxos/
|
|
105
|
-
"@dxos/
|
|
126
|
+
"@types/react": "~19.2.7",
|
|
127
|
+
"effect": "3.20.0",
|
|
128
|
+
"react": "~19.2.3",
|
|
129
|
+
"react-dom": "~19.2.3",
|
|
130
|
+
"tailwindcss": "^4.2.0",
|
|
131
|
+
"@dxos/plugin-preview": "0.8.4-main.bcb3aa67d6",
|
|
132
|
+
"@dxos/plugin-testing": "0.8.4-main.bcb3aa67d6",
|
|
133
|
+
"@dxos/random": "0.8.4-main.bcb3aa67d6",
|
|
134
|
+
"@dxos/plugin-theme": "0.8.4-main.bcb3aa67d6",
|
|
135
|
+
"@dxos/react-ui-form": "0.8.4-main.bcb3aa67d6",
|
|
136
|
+
"@dxos/storybook-utils": "0.8.4-main.bcb3aa67d6",
|
|
137
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.bcb3aa67d6",
|
|
138
|
+
"@dxos/react-ui": "0.8.4-main.bcb3aa67d6",
|
|
139
|
+
"@dxos/test-utils": "0.8.4-main.bcb3aa67d6",
|
|
140
|
+
"@dxos/ui-theme": "0.8.4-main.bcb3aa67d6"
|
|
106
141
|
},
|
|
107
142
|
"peerDependencies": {
|
|
108
|
-
"@effect-
|
|
109
|
-
"@effect/platform": "
|
|
110
|
-
"effect": "
|
|
111
|
-
"react": "
|
|
112
|
-
"react-dom": "
|
|
113
|
-
"@dxos/
|
|
114
|
-
"@dxos/react-ui
|
|
143
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
144
|
+
"@effect/platform": "0.94.4",
|
|
145
|
+
"effect": "3.20.0",
|
|
146
|
+
"react": "~19.2.3",
|
|
147
|
+
"react-dom": "~19.2.3",
|
|
148
|
+
"@dxos/ui-theme": "0.8.4-main.bcb3aa67d6",
|
|
149
|
+
"@dxos/react-ui": "0.8.4-main.bcb3aa67d6"
|
|
115
150
|
},
|
|
116
151
|
"publishConfig": {
|
|
117
152
|
"access": "public"
|
|
@@ -2,71 +2,51 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import {
|
|
5
|
+
import * as Option from 'effect/Option';
|
|
6
|
+
|
|
7
|
+
import { Plugin } from '@dxos/app-framework';
|
|
8
|
+
import { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';
|
|
9
|
+
import { Annotation, Obj } from '@dxos/echo';
|
|
8
10
|
import { getSpace } from '@dxos/react-client/echo';
|
|
9
|
-
import {
|
|
11
|
+
import { Message, Transcript } from '@dxos/types';
|
|
10
12
|
|
|
11
|
-
import {
|
|
12
|
-
import { renderByline } from './components';
|
|
13
|
-
import { meta } from './meta';
|
|
13
|
+
import { meta } from '#meta';
|
|
14
14
|
import { translations } from './translations';
|
|
15
|
-
import {
|
|
15
|
+
import { renderByline } from './util';
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const content = queue?.objects
|
|
39
|
-
.filter((message) => Obj.instanceOf(DataType.Message, message))
|
|
40
|
-
.flatMap((message, index) => renderByline(members)(message, index))
|
|
41
|
-
.join('\n\n');
|
|
42
|
-
return content;
|
|
43
|
-
},
|
|
17
|
+
import { BlueprintDefinition, OperationHandler, ReactSurface, Transcriber } from '#capabilities';
|
|
18
|
+
|
|
19
|
+
export const TranscriptionPlugin = Plugin.define(meta).pipe(
|
|
20
|
+
AppPlugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),
|
|
21
|
+
AppPlugin.addMetadataModule({
|
|
22
|
+
metadata: {
|
|
23
|
+
id: Transcript.Transcript.typename,
|
|
24
|
+
metadata: {
|
|
25
|
+
icon: Annotation.IconAnnotation.get(Transcript.Transcript).pipe(Option.getOrThrow).icon,
|
|
26
|
+
iconHue: Annotation.IconAnnotation.get(Transcript.Transcript).pipe(Option.getOrThrow).hue ?? 'white',
|
|
27
|
+
// TODO(wittjosiah): Factor out. Artifact? Separate capability?
|
|
28
|
+
getTextContent: async (transcript: Transcript.Transcript) => {
|
|
29
|
+
const space = getSpace(transcript);
|
|
30
|
+
const members = space?.members.get().map((member) => member.identity) ?? [];
|
|
31
|
+
const queue = space?.queues.get<Message.Message>(transcript.queue.dxn);
|
|
32
|
+
await queue?.refresh();
|
|
33
|
+
const content = queue?.objects
|
|
34
|
+
.filter((message) => Obj.instanceOf(Message.Message, message))
|
|
35
|
+
.flatMap((message, index) => renderByline(members)(message, index))
|
|
36
|
+
.join('\n\n');
|
|
37
|
+
return content;
|
|
44
38
|
},
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
defineModule({
|
|
48
|
-
id: `${meta.id}/module/schema`,
|
|
49
|
-
activatesOn: ClientEvents.SetupSchema,
|
|
50
|
-
activate: () => [contributes(ClientCapabilities.Schema, [Transcript.Transcript])],
|
|
39
|
+
},
|
|
40
|
+
},
|
|
51
41
|
}),
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
activatesOn: Events.SetupIntentResolver,
|
|
60
|
-
activate: IntentResolver,
|
|
61
|
-
}),
|
|
62
|
-
defineModule({
|
|
63
|
-
id: `${meta.id}/module/transcription`,
|
|
64
|
-
activatesOn: Events.SetupAppGraph,
|
|
42
|
+
AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
|
|
43
|
+
AppPlugin.addSchemaModule({ schema: [Transcript.Transcript] }),
|
|
44
|
+
AppPlugin.addSurfaceModule({ activate: ReactSurface }),
|
|
45
|
+
AppPlugin.addTranslationsModule({ translations }),
|
|
46
|
+
Plugin.addModule({
|
|
47
|
+
id: 'transcription',
|
|
48
|
+
activatesOn: AppActivationEvents.SetupAppGraph,
|
|
65
49
|
activate: Transcriber,
|
|
66
50
|
}),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
activatesOn: Events.SetupArtifactDefinition,
|
|
70
|
-
activate: BlueprintDefinition,
|
|
71
|
-
}),
|
|
72
|
-
]);
|
|
51
|
+
Plugin.make,
|
|
52
|
+
);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { type AppCapabilities } from '@dxos/app-toolkit';
|
|
6
|
+
import { Blueprint, Template } from '@dxos/blueprints';
|
|
7
|
+
import { trim } from '@dxos/util';
|
|
8
|
+
|
|
9
|
+
import { TranscriptOperation } from '#operations';
|
|
10
|
+
|
|
11
|
+
const BLUEPRINT_KEY = 'org.dxos.blueprint.transcription';
|
|
12
|
+
|
|
13
|
+
const make = () =>
|
|
14
|
+
Blueprint.make({
|
|
15
|
+
key: BLUEPRINT_KEY,
|
|
16
|
+
name: 'Transcription',
|
|
17
|
+
tools: Blueprint.toolDefinitions({ operations: [TranscriptOperation.Open, TranscriptOperation.Summarize] }),
|
|
18
|
+
instructions: Template.make({
|
|
19
|
+
source: trim`
|
|
20
|
+
You can open and summarize a meeting transcript.
|
|
21
|
+
`,
|
|
22
|
+
}),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
const blueprint: AppCapabilities.BlueprintDefinition = {
|
|
26
|
+
key: BLUEPRINT_KEY,
|
|
27
|
+
make,
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export default blueprint;
|
|
@@ -2,30 +2,16 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import { Blueprint, Template } from '@dxos/blueprints';
|
|
7
|
-
import { type FunctionDefinition } from '@dxos/functions';
|
|
8
|
-
import { trim } from '@dxos/util';
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
9
6
|
|
|
10
|
-
import {
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
11
9
|
|
|
12
|
-
|
|
10
|
+
import { TranscriptionBlueprint } from '#blueprints';
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
key: 'dxos.org/blueprint/transcription',
|
|
21
|
-
name: 'Transcription',
|
|
22
|
-
tools: Blueprint.toolDefinitions({ functions }),
|
|
23
|
-
instructions: Template.make({
|
|
24
|
-
source: trim`
|
|
25
|
-
You can open and summarize a meeting transcript.
|
|
26
|
-
`,
|
|
27
|
-
}),
|
|
28
|
-
}),
|
|
29
|
-
),
|
|
30
|
-
];
|
|
31
|
-
};
|
|
12
|
+
const blueprintDefinition = Capability.makeModule<
|
|
13
|
+
[],
|
|
14
|
+
Capability.Capability<typeof AppCapabilities.BlueprintDefinition>[]
|
|
15
|
+
>(() => Effect.succeed([Capability.contributes(AppCapabilities.BlueprintDefinition, TranscriptionBlueprint)]));
|
|
16
|
+
|
|
17
|
+
export default blueprintDefinition;
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { Capability } from '@dxos/app-framework';
|
|
6
|
+
import { OperationHandlerSet } from '@dxos/operation';
|
|
6
7
|
|
|
7
|
-
export const BlueprintDefinition = lazy(() => import('./blueprint-definition'));
|
|
8
|
-
export const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export
|
|
8
|
+
export const BlueprintDefinition = Capability.lazy('BlueprintDefinition', () => import('./blueprint-definition'));
|
|
9
|
+
export const OperationHandler = Capability.lazy<OperationHandlerSet.OperationHandlerSet>(
|
|
10
|
+
'OperationHandler',
|
|
11
|
+
() => import('./operation-handler'),
|
|
12
|
+
);
|
|
13
|
+
export const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));
|
|
14
|
+
export const Transcriber = Capability.lazy('Transcriber', () => import('./transcriber'));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
8
|
+
import type { OperationHandlerSet } from '@dxos/operation';
|
|
9
|
+
|
|
10
|
+
import { TranscriptionOperationHandlerSet } from '#operations';
|
|
11
|
+
|
|
12
|
+
export default Capability.makeModule<OperationHandlerSet.OperationHandlerSet>(
|
|
13
|
+
Effect.fnUntraced(function* () {
|
|
14
|
+
return Capability.contributes(Capabilities.OperationHandler, TranscriptionOperationHandlerSet);
|
|
15
|
+
}),
|
|
16
|
+
);
|
|
@@ -2,21 +2,29 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
5
6
|
import React from 'react';
|
|
6
7
|
|
|
7
|
-
import { Capabilities,
|
|
8
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
|
+
import { Surface } from '@dxos/app-framework/ui';
|
|
8
10
|
import { Obj } from '@dxos/echo';
|
|
11
|
+
import { Transcript } from '@dxos/types';
|
|
9
12
|
|
|
10
|
-
import { TranscriptionContainer } from '
|
|
11
|
-
import { meta } from '
|
|
12
|
-
import { Transcript } from '../types';
|
|
13
|
+
import { TranscriptionContainer } from '#containers';
|
|
14
|
+
import { meta } from '#meta';
|
|
13
15
|
|
|
14
|
-
export default () =>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
export default Capability.makeModule(() =>
|
|
17
|
+
Effect.succeed(
|
|
18
|
+
Capability.contributes(Capabilities.ReactSurface, [
|
|
19
|
+
Surface.create({
|
|
20
|
+
id: `${meta.id}.article.transcript`,
|
|
21
|
+
role: ['article', 'section'],
|
|
22
|
+
filter: (data): data is { attendableId: string; subject: Transcript.Transcript } =>
|
|
23
|
+
typeof data.attendableId === 'string' && Obj.instanceOf(Transcript.Transcript, data.subject),
|
|
24
|
+
component: ({ data, role }) => (
|
|
25
|
+
<TranscriptionContainer role={role} subject={data.subject} attendableId={data.attendableId} />
|
|
26
|
+
),
|
|
27
|
+
}),
|
|
28
|
+
]),
|
|
29
|
+
),
|
|
30
|
+
);
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
7
6
|
|
|
8
|
-
import {
|
|
7
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
8
|
+
import { ClientCapabilities } from '@dxos/plugin-client/types';
|
|
9
9
|
|
|
10
|
-
import {
|
|
10
|
+
import { MediaStreamRecorder, Transcriber, TranscriptionManager } from '../transcriber';
|
|
11
|
+
import { TranscriptionCapabilities } from '#types';
|
|
11
12
|
|
|
12
13
|
// TODO(burdon): Move to config?
|
|
13
14
|
|
|
@@ -30,48 +31,55 @@ const TRANSCRIBE_AFTER_CHUNKS_AMOUNT = 50;
|
|
|
30
31
|
/**
|
|
31
32
|
* Records audio while user is speaking and transcribes it after user is done speaking.
|
|
32
33
|
*/
|
|
33
|
-
export default (
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
recorder: new MediaStreamRecorder({
|
|
48
|
-
mediaStreamTrack: audioStreamTrack,
|
|
34
|
+
export default Capability.makeModule(
|
|
35
|
+
Effect.fnUntraced(function* () {
|
|
36
|
+
// Get context for lazy capability access in callbacks.
|
|
37
|
+
const capabilities = yield* Capability.Service;
|
|
38
|
+
const registry = yield* Capability.get(Capabilities.AtomRegistry);
|
|
39
|
+
|
|
40
|
+
const getTranscriber: TranscriptionCapabilities.GetTranscriber = ({
|
|
41
|
+
audioStreamTrack,
|
|
42
|
+
onSegments,
|
|
43
|
+
transcriberConfig,
|
|
44
|
+
recorderConfig,
|
|
45
|
+
}) => {
|
|
46
|
+
// Initialize audio transcription.
|
|
47
|
+
return new Transcriber({
|
|
49
48
|
config: {
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
transcribeAfterChunksAmount: TRANSCRIBE_AFTER_CHUNKS_AMOUNT,
|
|
50
|
+
prefixBufferChunksAmount: PREFIXED_CHUNKS_AMOUNT,
|
|
51
|
+
...transcriberConfig,
|
|
52
52
|
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
recorder: new MediaStreamRecorder({
|
|
54
|
+
mediaStreamTrack: audioStreamTrack,
|
|
55
|
+
config: {
|
|
56
|
+
interval: RECORD_INTERVAL,
|
|
57
|
+
...recorderConfig,
|
|
58
|
+
},
|
|
59
|
+
}),
|
|
60
|
+
onSegments,
|
|
61
|
+
});
|
|
62
|
+
};
|
|
57
63
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
+
const getTranscriptionManager: TranscriptionCapabilities.GetTranscriptionManager = ({ messageEnricher }) => {
|
|
65
|
+
const client = capabilities.get(ClientCapabilities.Client);
|
|
66
|
+
const transcriptionManager = new TranscriptionManager({
|
|
67
|
+
edgeClient: client.edge.http,
|
|
68
|
+
messageEnricher,
|
|
69
|
+
registry,
|
|
70
|
+
});
|
|
64
71
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
72
|
+
const identity = client.halo.identity.get();
|
|
73
|
+
if (identity) {
|
|
74
|
+
transcriptionManager.setIdentityDid(identity.did);
|
|
75
|
+
}
|
|
69
76
|
|
|
70
|
-
|
|
71
|
-
|
|
77
|
+
return transcriptionManager;
|
|
78
|
+
};
|
|
72
79
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
80
|
+
return [
|
|
81
|
+
Capability.contributes(TranscriptionCapabilities.Transcriber, getTranscriber),
|
|
82
|
+
Capability.contributes(TranscriptionCapabilities.TranscriptionManager, getTranscriptionManager),
|
|
83
|
+
];
|
|
84
|
+
}),
|
|
85
|
+
);
|