Skip to content

唤醒回复完后会话就立马被断开了 #1757

@jamwu

Description

@jamwu

Answers checklist.

  • I have read the documentation XiaoZhi AI Programming Guide and the issue is not addressed there.
  • I have updated my firmware to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

XiaoZhi AI firmware version.

v2.0.5

Operating System used.

Windows

How did you build your project?

VS Code IDE/Cursor

If you are using Windows, please specify command line type.

PowerShell

Power Supply used.

Battery

What is the expected behavior?

唤醒后,应该是能持续进行对话的,除非超时或者直到用户说了接近再见/结束会话的句子

What is the actual behavior?

有时候唤醒回复完后,立马就收到来自服务器端的goodbye消息,会话被结束 (用户端从头到尾只说了唤醒词)

Steps to reproduce.

通过唤醒词唤醒,有概率出现这样的问题

Debug Logs.

I (33019) Application: STATE: connecting
I (33079) MQTT: Session ID: e2c5a701
I (33079) wifi:Set ps type: 0, coexist: 0

I (33079) Application: Wake word detected: Hey Ivy
I (33419) AfeWakeWord: Encode wake word opus 66 packets in 402 ms
I (33419) Application: STATE: listening
I (33429) AFE: AFE Version: (1MIC_V250121)
I (33429) AFE: Input PCM Config: total 1 channels(1 microphone, 0 playback), sample rate:16000
I (33429) AFE: AFE Pipeline: [input] -> |VAD(WebRTC)| -> [output]
I (33439) AfeAudioProcessor: Audio communication task started, feed size: 512 fetch size: 512
I (33489) Application: STATE: speaking
I (33489) Application: >> Hey Ivy
I (33919) Application: << Good afternoon!
I (34179) AudioCodec: Set output enable to true
I (35509) Application: << The air feels fresh today—perfect for a quick skincare refresh.
I (39629) Application: << Want a glow-boosting tip?
I (41489) Application: STATE: listening
I (41499) MQTT: Received goodbye message, session_id: e2c5a701
I (41499) wifi:Set ps type: 1, coexist: 0

I (41499) Application: STATE: idle
I (41529) MQTT: Received goodbye message, session_id: e2c5a701
I (41529) wifi:Set ps type: 1, coexist: 0

More Information.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions