# 📱 LiveKit Voice AI - 局域网测试指南

## ✅ 服务状态

```
✅ Agent Worker:   PID 74404 (voice-ai-agent)
✅ FunASR STT:    localhost:8080 (healthy)
✅ LiveKit Server: localhost:7880 (Docker, Up)
```

## 📡 网络信息

```
Mac IP:     192.168.31.229
LiveKit:    ws://192.168.31.229:7880
STT 服务:   http://192.168.31.229:8080
```

## 🔑 手机测试 Token

```
Room:      voice-ai-meeting
Identity:  phone-user
Token:     eyJhbG...-J4s
Server:    ws://192.168.31.229:7880
```

## 📱 测试步骤

### 方式一：浏览器访问（最简单）
在手机上打开浏览器访问:
```
http://192.168.31.229:7880/explore#voice-ai-meeting
```

### 方式二：React Native App（推荐）
1. 编辑 `react-native-example/MeetingApp.js`:
```javascript
const SERVER_URL = 'ws://192.168.31.229:7880';
const TOKEN='eyJhbG...-J4s';
```

2. 运行:
```bash
npx react-native run-ios --device
```

## ⚠️ 防火墙检查

如果无法连接，检查防火墙:
```bash
# 查看防火墙状态
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate

# 临时关闭（测试用）
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
```
