khanhuitse05 / speech-and-text-unity-ios-android

Speed to text in Unity iOS use Native Speech Recognition
MIT License
286 stars 124 forks source link

How To make if STT == text.text #63

Closed rizkichaidir17 closed 2 years ago

rizkichaidir17 commented 2 years ago

hy how to make if STT == text.text on unity??

g5fighter commented 2 years ago

If you mean checking if result is equal to a given tezt. AS simple as change the callback function. void OnResultSpeech(string _data) { if(_data == text.text){ // Do something } }