Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize the speech message recognition developed by Wechat official account by php

Shulou Source: shulou.com Published: 2022-06-03 19:33:14 09月21日 Update

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:

Tags: Voice message content development public merchandise address garbage shop developer number data user type article type subscription scissors trash can garbage bag Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info macOS Apple Shulou Information Shulou Technology