The steps to set up the voice interaction feature of Coze on WeChat are as follows:
- Turn on voice recognition: Set in the config.json file
"speech_recognition": true - Configuring Voice Response::
- set up
"text_to_voice": "coze" - fill in
"coze_voice_id"(Tone IDs obtained from the Coze platform)
- set up
- Coze Platform Setup: Enable Voice Reply in Coze Robot Configuration Page
Care is required when using the voice function:
- Supports voice recognition for up to 20 seconds only
- WiFi or a stable internet environment is recommended
- Response tones can be selected on the Coze platform
- If deploying with Docker, you need to ensure that the image contains the relevant voice components
After the setup is complete, users can both ask questions to the robot by voice and receive voice responses sent by the robot, greatly enhancing the interaction experience.
This answer comes from the articleCoze on WeChat: Bringing the Coze (button) bot to WeChatThe































