mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
Merge pull request #2879 from xinnan-tech/fix-digital-human
update: 拨号成功后自动开启录音
This commit is contained in:
commit
3222d6175d
1 changed files with 5 additions and 0 deletions
|
|
@ -333,6 +333,11 @@ class UIController {
|
|||
// 连接成功后开始对话
|
||||
startAIChatSession() {
|
||||
this.addChatMessage('连接成功,开始聊天吧~🙂', false);
|
||||
// 开启录音
|
||||
const recordBtn = document.getElementById('recordBtn');
|
||||
if (recordBtn) {
|
||||
recordBtn.click();
|
||||
}
|
||||
}
|
||||
|
||||
// 处理连接按钮点击
|
||||
|
|
|
|||
Loading…
Reference in a new issue