feat: 更新服务地址为 192.168.1.9,修改相关配置以支持局域网访问

This commit is contained in:
Pine
2026-08-18 09:05:23 +08:00
parent 7e6b14c44a
commit 81a888f5ca
17 changed files with 48 additions and 37 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ Realtime **GA** protocol and plays back the assistant's audio as it arrives.
3. Open <http://localhost:7860/>, click the orb, allow the mic, talk.
> Browsers require **HTTPS or `localhost`** for `getUserMedia()` (mic + camera).
> `127.0.0.1` and `localhost` both work; plain `http://192.168.x.y` does NOT.
> `192.168.1.9` and `localhost` both work; plain `http://192.168.x.y` does NOT.
Smoke-test the backend from the shell:
+1 -1
View File
@@ -21,7 +21,7 @@
<body class="booting">
<!-- Digital-human video, fixed as a full-viewport background layer -->
<div id="avatar-stage" class="avatar-stage" aria-hidden="true">
<iframe id="avatar-frame" src="http://127.0.0.1:8010/embed.html" allow="autoplay; microphone" frameborder="0"></iframe>
<iframe id="avatar-frame" src="http://192.168.1.9:8010/embed.html" allow="autoplay; microphone" frameborder="0"></iframe>
</div>
<div id="app">
+1 -1
View File
@@ -57,7 +57,7 @@ async function getWsUrl() {
const cfg = await r.json();
if (cfg.s2sUrl) return cfg.s2sUrl;
} catch (e) { /* fall through */ }
return "ws://127.0.0.1:8765/v1/realtime";
return "ws://192.168.1.9:8765/v1/realtime";
}
// Must be called from a user gesture (button click) so the browser allows audio.