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

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

Android - SpeechToText - Scene requires a GameObject named exactly 'SpeechToText' #49

Closed Xiphereal closed 2 years ago

Xiphereal commented 3 years ago

Hi!

I've been doing some work with this plugin on Android for its Speech to Text capabilities. I've found that neither the code nor the README.md file warns about the need of having a GameObject in the scene named exactly SpeechToText for the plugin to work. The Init() method in SpeechToText is supposed to create a GameObject with that same name, but it doesn't seem to work neither. I mean the callbacks a correctly called, but it seems that is something in the Java side that is causing the problem. Could it be solved so that the code hints how the SpeechToText capabilities in this plugin really work? Or at least, warn about it in the README.md.

Thanks!

khanhuitse05 commented 2 years ago

https://github.com/j1mmyto9/Speech-And-Text-Unity-iOS-Android/pull/47