feat: 添加 s2s 实时语音 WebSocket 地址支持,并更新相关配置

This commit is contained in:
Pine
2026-08-18 07:47:25 +08:00
parent d70d9d5fbd
commit 566656aab9
6 changed files with 27 additions and 7 deletions
+6
View File
@@ -41,6 +41,12 @@ export function getMqttCredentials() {
};
}
/** 惰性读取 s2s 实时语音 WebSocket 地址(打包部署:tauri.localhost → 127.0.0.1 */
export function getVoiceWsUrl() {
const baked = env.VITE_VOICE_WS || `ws://${resolveHost()}:8765/v1/realtime`;
return window.__DPM_VOICE_WS__ || baked;
}
export const MQTT_TOPIC_COMMAND = 'opc/display/command';
export const MQTT_TOPIC_TICK = 'opc/dashboard/tick';
export const MQTT_TOPIC_HEARTBEAT = 'opc/display/heartbeat';