[Android build] SDK Scripts can't access Watson services on phone.
Hi Taj,
Thanks for the helps previously, I was able to put together a completely verbal conversation pipeline/workshop for my class. Check out the in-class demo I designed and built here: https://youtu.be/meOcCMeS4Pk
My next quest is to deploy this example to mobile devices, and I am starting out with the Android platform. I had setup the general permissions (Audio Record, Internet, and Network Status) properly. However, the same setup that I have (based on scripts in the SDK) and work on PC seems to have problems accessing internet on Android. Before I go to Stackoverflow, just wanted to check-in with you that there is nothing in the SDK that prevents Android apk from connecting to the Watson services. Or are there special permission(s) that I missed?
best,
Stack overflow is fine - everybody loves points! Awesome demo, by the way. Let me look into this.
I just tested with Unity and I am able to get an internet connection and confirm speech to text, text to speech and conversation can be reached. Can you build the test scenes for Android and see if they work for you?
- [ ] Watson/Scenes/UnitTests/Main
- [ ] Watson/Examples/WidgetExamples/ExampleLanguageTranslator
- [ ] Watson/Scenes/UnitTests/TestMic
- [ ] Watson/Scenes/UnitTests/TestNaturalLanguageClassifier
- [ ] Watson/Scenes/UnitTests/TestSpeechToText
- [ ] Watson/Scenes/UnitTests/TestTextToSpeech
- [ ] Watson/Scenes/UnitTests/UnitTests
The main file should have five buttons leading to test scenes for different services. Test TextToSpeech and SpeechToText. If you can use adb/logcat you can check the results of the unit tests. The adb tool should be where you keep your Android SDK under platform-tools
./adb logcat | grep Unity
@ghettokon Were you able to check this out?
Haven't had time to do so, but I will look into it later today. Just from a glance, I realized I setup my SDK very differently, I didn't use any Widget script at all. My pipeline was built entire based on the folder you pointed me to earlier, which works out great on PC and Mac. I wrote my own mic script, and it works on mobile fine, I tested it out individually. Anyway I will report back on it later.
Just a heads-up, my next issue title will be about accessing context data. hehe
thanks so much!
On Wed, Mar 8, 2017 at 11:32 AM, Ajiemar Santiago [email protected] wrote:
@ghettokon https://github.com/ghettokon Were you able to check this out?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/watson-developer-cloud/unity-sdk/issues/224#issuecomment-285091677, or mute the thread https://github.com/notifications/unsubscribe-auth/ADM8-FY6gS5hJyFRnfibd9HZ2_U5CYS2ks5rjtgNgaJpZM4MTgRA .
-- Assistant Professor of Media Design, Director of BFA Design & Technology, Kyle Li School of Art, Media, and Technology Parsons The New School for Design http://goo.gl/iHijNh http://a.parsons.edu/~lik43/doc 503-866-5667
Sent from my ファミリーベーシック
The contents of this e-mail message and any attachments are confidential and are intended solely for addressee. The information may also be legally privileged. This transmission is sent in trust, for the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or phone and delete this message and its attachments, if any.
@ghettokon What is the status of this issue? Is it working?
I ran the unity test and they work on my proyect (Im using conversation) but when I complie the APK watson does not show any response, do you know what could the problem be?, also i dont know that is the build ATO for?, am I missing a compilation request?, I biuld the project with "watson>Biuld>Player>Android" and with "File>BuildSettings>Biuld"
@Infinity0106 Can you please try to access the workspace ID after about 1 second? Not from Start()? I feel like the config file may need some time to load.
@mediumTaj Hi I would like ot follow up what you mentioned. I am doing the same Speech-To-Text to build Watson via Unity on Android, and seems not working everything. How could I make sure to know the config is already loaded?
you said we could wait one sec before using service. like this?
Credentials credentials = new Credentials(_username, _password, _url); // add code here....wait 1 second _speechToText = new SpeechToText(credentials);
or is there any way I could check anytime the config is loaded before using service?
thank you!!
@jacktsai526 This only referred to an older release where the credentials were loaded via config file. The latest SDK should not need to wait for this. Let me charge an android device to see if I can access services. If you would like you can open a new issue since this is old.
@mediumTaj Thanks! I will open a new issue.
Hi Aji, awesome to see the SDK out, I feel like I should get an honorary mention since I and my class pick out most of these problem ahead of time, lol.
On Fri, Mar 23, 2018 at 3:24 PM, Jack Tsai [email protected] wrote:
@mediumTaj http:///mediumTaj Thanks! I will open a new issue.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/watson-developer-cloud/unity-sdk/issues/224#issuecomment-375773539, or mute the thread https://github.com/notifications/unsubscribe-auth/ADM8-IP9CoIsv5eEPDMWfhsxTGol9VDHks5thUvigaJpZM4MTgRA .
-- Assistant Professor of Media Design, Director of BFA Design & Technology, Kyle Li School of Art, Media, and Technology Parsons The New School for Design http://goo.gl/iHijNh http://a.parsons.edu/~lik43/doc 503-866-5667
Sent from my ファミリーベーシック
The contents of this e-mail message and any attachments are confidential and are intended solely for addressee. The information may also be legally privileged. This transmission is sent in trust, for the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or phone and delete this message and its attachments, if any.