mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
原版 recv 在二进制语音帧期间必须按顺序 drain 才能拿到 mcp 文本帧,测出来偏慢。改成后台线程持续把帧按到达时间入队、主循环按队列处理,模拟 digital-human 的异步 onmessage 行为。附 handshake_summary_real.txt 是方案 C 后 10 次跑出的数据。
9 lines
353 B
Bash
Executable file
9 lines
353 B
Bash
Executable file
#!/bin/bash
|
|
# 在 main/xiaozhi-server 目录启 wk01 服务到 18000 端口
|
|
cd /home/claw/myworkspace/wk01/xiaozhi-esp32-server/main/xiaozhi-server
|
|
pkill -f 'python app.py' 2>/dev/null
|
|
sleep 1
|
|
rm -f /tmp/wk01_xiaozhi.log
|
|
nohup /home/claw/miniconda3/envs/xiaozhi-esp32-server/bin/python app.py > /tmp/wk01_xiaozhi.log 2>&1 &
|
|
echo "started pid=$!"
|
|
disown
|