|
|
发表于 2025-12-23 20:41:19
|
显示全部楼层
本帖最后由 geniusliang 于 2025-12-23 20:54 编辑
大佬。我在aku上部署了你语音助手
现在ha.service已经成功启动。也可以使用
但是display.service 启动失败
● display.service - Wyoming Display Handler
Loaded: loaded (/lib/systemd/system/display.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2025-12-23 20:37:23 CST; 2s ago
Process: 319 ExecStart=/opt/ha/wyoming-satellite/.venv/bin/python3 /opt/ha/display_handler.py --uri tcp://127.0.0.1:10500 --debug (code=exited, status=1/FAILURE)
Main PID: 319 (code=exited, status=1/FAILURE)
CPU: 370ms
请问问题在哪里?我Display Handler 是直接复制你的代码的。不知道问题出在哪里
ha 的status好像也有点问题, 127.0.0.1', 10500好像没有连上。我把127.0.0.1可以改成设备自己的IP地址么?
root@akubox:~# systemctl status ha
● ha.service - HA Voice Service
Loaded: loaded (/lib/systemd/system/ha.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2025-12-23 20:33:16 CST; 9min ago
Main PID: 189 (python3)
CPU: 31.800s
CGroup: /system.slice/ha.service
├─189 /opt/ha/wyoming-satellite/.venv/bin/python3 -m wyoming_satellite --uri tcp://0.0.0.0:10700 --name aku-bedroom --mic-command "arecord -r 16000 -c 1 -f S16_LE -t raw" --snd-command "aplay -r 22050 -c 1 -f S16_LE -t raw" --awake-wav sounds/awake.wav --done-wav sounds/done.wav --timer-finished-wav sounds/timer_finished.wav --event-uri tcp://127.0.0.1:10500
└─224 arecord -r 16000 -c 1 -f S16_LE -t raw
Dec 23 20:33:29 akubox python3[189]: raise exceptions[0]
Dec 23 20:33:29 akubox python3[189]: File "/usr/lib/python3.10/asyncio/base_events.py", line 1060, in create_connection
Dec 23 20:33:29 akubox python3[189]: sock = await self._connect_sock(
Dec 23 20:33:29 akubox python3[189]: File "/usr/lib/python3.10/asyncio/base_events.py", line 969, in _connect_sock
Dec 23 20:33:29 akubox python3[189]: await self.sock_connect(sock, address)
Dec 23 20:33:29 akubox python3[189]: File "/usr/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
Dec 23 20:33:29 akubox python3[189]: return await fut
Dec 23 20:33:29 akubox python3[189]: File "/usr/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
Dec 23 20:33:29 akubox python3[189]: raise OSError(err, f'Connect call failed {address}')
Dec 23 20:33:29 akubox python3[189]: ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 10500)
还有个问题。这个语音助手的音量在哪里调?
|
|