Forum Discussion
sandeepkumar10
8 years agoHonored Guest
How to make IBM Watson VR Speech Sandbox work on Android after building in Unity3D
Hi all, I need help with the deployment of IBM Watson voice recognition on mobile from unity3D.
I'm working on a VR app for the Google Cardboard. The idea is to cause events in the app to trigger based on voice commands. For instance, if I say "Hello", that word should trigger an action in the app.
Initially, it worked perfectly on HTC Vive and Oculus Rift. Now, I ported the same speech recognition code to mobile, and it has refused to work.
What to do? I decided to use IBM Watson STT(Speech To Text) and Conversation service to achieve the result I wanted using Watson SDK for Unity and IBM Speech Sandbox. It finally began to work on play mode in unity editor. I.e the app works perfectly, recognizing my voice or any other voice input and triggering the relative in-app action.
The issue now is this, once I build to an Android phone, connect to the internet (internet connection required for Watson to send data between my app and the cloud), turn on microphone option from app permission in app settings, it doesn't recognize my voice input or that of any other person. But in the editor, it works fine. I've tried all I could, done all the debugging I know, voice recognition is still not working on Cardboard.
Thanks,
Sandeep,
3 Replies
- johnson267Honored Guest
Android builds are not able to connect to TLS 1.2 endpoints. Please change your endpoints to
conversation https://gateway-tls10.watsonplatform.net/conversation/api speech to text https://stream-tls10.watsonplatform.net/speech-to-text/api
- raavikantExplorer
To resolve the issue with IBM Watson voice recognition not working on mobile (specifically on Google Cardboard) after successful implementation in the Unity Editor, you can try the following:
- Ensure a stable internet connection on your Android phone as Watson services require internet connectivity.
- Confirm that your app has been granted microphone permissions in the app settings on your Android phone.
- Review your code for any errors or exceptions related to microphone input or voice recognition and implement proper error handling and logging mechanisms.
- Verify if the microphone on your Android phone is functioning correctly by testing it with other voice-related apps.
- Run your app on different Android devices to determine if the issue is specific to Google Cardboard.
- Check and configure the Unity Player settings for the Android build, ensuring the microphone is selected as the default audio device.
- Verify compatibility between the IBM Watson Unity SDK and your Unity version, and update the SDK and related libraries if necessary.
- If the issue persists, consider reaching out to IBM Watson support or their developer community for further assistance.
By following these steps, you should be able to troubleshoot and resolve the issue with IBM Watson voice recognition not working on the Google Cardboard platform.
Regards
Ravikant Chouhan
- sophiawindsorHonored Guest
Troubleshooting IBM Watson voice recognition on mobile in Unity3D for Google Cardboard VR app. Code works in Unity editor but fails on Android. Verify microphone permissions, stable internet connection, and device compatibility. Debug using Android tools for logs and errors. Test on multiple Android devices for further insights.
I hope this will help you.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 9 months ago
- 8 months ago
- 18 days ago
- 3 years ago