@furious.luke/argus-js 0.5.2 → 0.5.4
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/README.md +6 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,6 +17,12 @@ Argus is a distributed video ingestion service. A stream flows through three par
|
|
|
17
17
|
|
|
18
18
|
This library is only the browser publishing half. It deliberately does **not** talk to the control plane or mint tokens — that requires your secret API key and must stay server-side.
|
|
19
19
|
|
|
20
|
+
Voice catalogue discovery and voice selection follow the same boundary. Your
|
|
21
|
+
server obtains the catalogue and includes its selected voice configuration when
|
|
22
|
+
creating the stream; the browser receives only its join token and gateway URLs.
|
|
23
|
+
`argus-js` therefore exposes the resulting assistant speech track but never a
|
|
24
|
+
voice configuration or control-plane credential.
|
|
25
|
+
|
|
20
26
|
```
|
|
21
27
|
┌──────────┐ 1. request join token ┌────────────┐
|
|
22
28
|
│ browser │ ───────────────────────▶ │ your server│ ──(API key)──▶ Argus control plane
|
package/dist/index.cjs
CHANGED
|
@@ -1196,6 +1196,8 @@ var Publisher = class {
|
|
|
1196
1196
|
const message = JSON.parse(data);
|
|
1197
1197
|
if (message.type === "assistant_text" && message.utterance_id && message.text) {
|
|
1198
1198
|
this.opts.callbacks?.onAssistantText?.({ utteranceId: message.utterance_id, text: message.text });
|
|
1199
|
+
} else if (message.type === "assistant_text_finished" && message.utterance_id) {
|
|
1200
|
+
this.opts.callbacks?.onAssistantTextFinished?.({ utteranceId: message.utterance_id });
|
|
1199
1201
|
} else if ((message.type === "user_text_accepted" || message.type === "user_text_rejected") && message.message_id) {
|
|
1200
1202
|
this.opts.callbacks?.onUserTextResult?.({
|
|
1201
1203
|
messageId: message.message_id,
|