How to realize the speech message recognition developed by Wechat official account by php
This article mainly introduces how php realizes the voice message recognition of the official account of Wechat. It is very detailed and has certain reference value. Interested friends must finish reading it.
The details are as follows
1. Enable speech recognition (off by default)
two。 Speech recognition
Please note that after enabling speech recognition, every time a user sends a voice to the official account, Wechat will add a Recognition field to the pushed voice message XML packet (Note: due to the client cache, the developer enables or disables the speech recognition feature, which takes effect immediately for new followers and 24 hours for already followed users. Developers can re-follow this account for testing). The voice XML packets after speech recognition is enabled are as follows: