Use speech to text

I need to implement the functionality of converting voice to text, how can I implement it in a video game with cocos creator

Which platform do you plan to implement this feature on? iOS ?Android? Web?

Hello in web

You can use Web Speech Recognition to do this. Not many browsers currently support this API,Chrome can be used.
https://wicg.github.io/speech-api/#examples-recognition

Google provides an online test site, you can directly view the HTML code to learn to use.

thanks