@datalayer/agent-runtimes 1.3.66 → 1.3.67
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.
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
* agent (http://127.0.0.1:8765);
|
|
14
14
|
* - `?voiceModelsUrl=` — the browser's models, as pinned
|
|
15
15
|
* (`scripts/voice/serve_store.py`, http://127.0.0.1:8770);
|
|
16
|
-
* - `?speechUrl=` —
|
|
16
|
+
* - `?speechUrl=` — Datalayer's speech service, datalayer-speech on r1
|
|
17
|
+
* (https://r1.datalayer.run), asked with the signed-in person's token.
|
|
17
18
|
*/
|
|
18
19
|
import React from 'react';
|
|
19
20
|
declare const VoiceChatExample: React.FC;
|
|
@@ -18,7 +18,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
18
18
|
* agent (http://127.0.0.1:8765);
|
|
19
19
|
* - `?voiceModelsUrl=` — the browser's models, as pinned
|
|
20
20
|
* (`scripts/voice/serve_store.py`, http://127.0.0.1:8770);
|
|
21
|
-
* - `?speechUrl=` —
|
|
21
|
+
* - `?speechUrl=` — Datalayer's speech service, datalayer-speech on r1
|
|
22
|
+
* (https://r1.datalayer.run), asked with the signed-in person's token.
|
|
22
23
|
*/
|
|
23
24
|
import { useMemo, useState } from 'react';
|
|
24
25
|
import { Heading, Link, SegmentedControl, Text } from '@primer/react';
|
|
@@ -34,7 +35,7 @@ function fromAddress(name, otherwise) {
|
|
|
34
35
|
}
|
|
35
36
|
const SERVER = fromAddress('agentRuntimesUrl', 'http://127.0.0.1:8765');
|
|
36
37
|
const MODELS = fromAddress('voiceModelsUrl', 'http://127.0.0.1:8770');
|
|
37
|
-
const SPEECH = fromAddress('speechUrl', '
|
|
38
|
+
const SPEECH = fromAddress('speechUrl', 'https://r1.datalayer.run');
|
|
38
39
|
/** The packages that hear, loaded the first time the microphone is used. */
|
|
39
40
|
const ENGINES = {
|
|
40
41
|
transformers: () => import('@huggingface/transformers'),
|