-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on Samsung S8 #73
Comments
We have same problem. Can you share the solution with us, if you fixed the issue? |
We are having the same issue. The app crashes if you try to hide the pop up. But it works fine if you show the pop up (which covers the whole app). Did anybody come up with any solutions to this? |
We were able to fix the problem, wich is pretty simple to adress
|
@PersistantStudio , Thank you. It took us a whole day to get android studio to compile this. We had already added a check on Thanks again. |
I think we encountered the same issue.The call are made by name on gameobject on the Java side, so the name in Unity3D need to match the one defined in the Java plugin. The code on this repo contains an error in the way the game object is named in Unity : It is actually named TextToSpeech instead of SpeechToText when you use the lazy instanciation. Correcting this error will fix the issue of not getting any callbacks. |
We fixed the issue by storing the text created in "onPartialResults" in a variable and if the data comes from "onResults" is null, than we use the stored text data. private Intent intent; String partialStringResult = ""; //variable to store text from onPartialResults @OverRide . @OverRide Edit: task deleteOldJar(type: Delete) { //task to export content as jar exportJar.dependsOn(deleteOldJar, build) |
@kayabilgehan Thanks for your solution, but my question is where should I implement this solution, in Unity? |
Nope the modifications needs to be made in the java project of the plugin. |
@medinags you have to make this changes in android studio with java like @PersistantStudio said. |
hello, sorry i have the same question, i m new with unity and i do this task, where i can found the java project of the plugin please? |
I have the same problem and when I installed Android Studio it told me that I need HAXM to work, but my computer does not meet the requirements. What can I do to edit the plugin? |
Can anyone share the plugin already fixed? |
SpeechToTextPlugin.jar.zip |
hello ,thank you for the reply but even i change the jar file and update the two files of textspeech and speechtotext it's does'nt work |
This fixed the issue. Thank you so much man! <3 |
Saved my life @Aneeb151. Thank you very much! |
Thanks a lot brother! |
Thank you so much for this !! |
Hi, recently it seems that the plugin encounter difficulties to run on some devices, on android 8/9 , ( samsung S8), while still working correctly on a Pixel 6.
On the S8 I receive a lot of RMS Changed callbacks ( that seems to be related to the sound level) and then the application crash with an IndexOutOfBoundException in the onPartialResults Handler. For some reason it seems that the StringArrayList is empty, leading to the instruction text.get(0) to crash.
I'm mostly suprised by what I'm interpreting to be a sudden incompatibility, as the application was properly working precedently.
Even weirder, by trying to create the minimal project to try to reduce the prism, I narrow the condition of reproduction to be directly related by the change in the the custom manifest files as I only experience this crash when I deactivate the show popup option, as the method StartRecording access the MainActivity. The Vocal recognition seems to be working with no custom manifest and the option Show Popup set as true.
The text was updated successfully, but these errors were encountered: