iMMERGENCE Posted June 12, 2018 Share Posted June 12, 2018 Anybody know if vive focus support speech recognition ? i tried to used a plugin for android from asset store https://assetstore.unity.com/packages/tools/input-management/android-speech-recognizer-plugin-47520 thanks loic Link to comment Share on other sites More sharing options...
Tony PH Lin Posted June 12, 2018 Share Posted June 12, 2018 Vive Focus somehow is similar as Android device, so I think it should work although I haven't seen the verified results. In addition, there are some 3rd party solutions on Asset Store and you can try to integrate into your VR contents. Link to comment Share on other sites More sharing options...
iMMERGENCE Posted June 12, 2018 Author Share Posted June 12, 2018 Ok i will try if it support. i'll keep you informed. Link to comment Share on other sites More sharing options...
iMMERGENCE Posted June 12, 2018 Author Share Posted June 12, 2018 so i tried 2 plugins for android device but when build in Focus, it say "not supported on this android device" i added in manifest <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_INTERNAL_STORAGE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.GET_TASKS"/> <!--for saving file or data on device used in camera, screenshot, speech recognizer and save and audio record --> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <!--for saving file or data on device used in camera, screenshot, speech recognizer and save and audio record --> <!--RecordAudio also used by SpeechRecognizer--> <uses-permission android:name="android.permission.RECORD_AUDIO" / Link to comment Share on other sites More sharing options...
dario Posted June 13, 2018 Share Posted June 13, 2018 Generally proprietary services found in Google Services will not be supported but as pointed out you can find thrid party solutions. Link to comment Share on other sites More sharing options...
dario Posted June 13, 2018 Share Posted June 13, 2018 To clarify a bit. the Unity plugin you purchased (and several others targeting Android) uses the Google cloud Speech API, you may want to look at alternatives like: https://developer.ibm.com/code/patterns/create-a-virtual-reality-speech-sandbox/ Link to comment Share on other sites More sharing options...
iMMERGENCE Posted June 19, 2018 Author Share Posted June 19, 2018 okay i found a solution i tried a plugin used google speech api. it works. just a latence problem time to receive data throught internet connection. this is the link plugin i used https://assetstore.unity.com/packages/tools/audio/speech-control-plugin-for-vr-76855 Link to comment Share on other sites More sharing options...
iMMERGENCE Posted June 19, 2018 Author Share Posted June 19, 2018 i added this code from Permission_Test.cs // ++ LICENSE-RELEASE SOURCE ++using System.Collections;using System.Collections.Generic;using UnityEngine;using wvr;using WaveVR_Log;public class Permission_Test : MonoBehaviour { private static string LOG_TAG = "Permission_Test"; private WaveVR_PermissionManager pmInstance = null; private static bool isDeny = false; private static int retryCount = 0; private static int RETRY_LIMIT = 1; private static bool requested = false; private static int systemCheckFailCount = 0; public static void requestDoneCallback(List<WaveVR_PermissionManager.RequestResult> results) { Log.d(LOG_TAG, "requestDoneCallback, count = " + results.Count); isDeny = false; foreach (WaveVR_PermissionManager.RequestResult p in results) { Log.d(LOG_TAG, "requestDoneCallback " + p.PermissionName + ": " + (p.Granted ? "Granted" : "Denied")); if (!p.Granted) { isDeny = true; } } if (isDeny) { if (retryCount++ < RETRY_LIMIT) { Log.d(LOG_TAG, "Permission denied, retry count = " + retryCount); requested = false; } else { Log.w(LOG_TAG, "Permission denied, exceed RETRY_LIMIT and skip request"); } } } // Use this for initialization void Start () { Log.d(LOG_TAG, "get instance at start"); pmInstance = WaveVR_PermissionManager.instance; requested = false; retryCount = 0; } // Update is called once per frame void Update () {#if UNITY_EDITOR if (Application.isEditor) return;#endif if (!requested) { if (systemCheckFailCount <= 10) { if (pmInstance.isInitialized()) { Log.d(LOG_TAG, "inited"); Log.d(LOG_TAG, "showDialogOnScene() = " + pmInstance.showDialogOnScene()); string[] tmpStr = { "android.permission.CAMERA", "android.permission.READ_EXTERNAL_STORAGE", "android.permission.RECORD_AUDIO", "android.permission.WRITE_EXTERNAL_STORAGE" }; Log.d(LOG_TAG, "isPermissionGranted(android.permission.CAMERA) = " + pmInstance.isPermissionGranted("android.permission.CAMERA")); Log.d(LOG_TAG, "isPermissionGranted(android.permission.WRITE_EXTERNAL_STORAGE) = " + pmInstance.isPermissionGranted("android.permission.WRITE_EXTERNAL_STORAGE")); Log.d(LOG_TAG, "shouldGrantPermission(android.permission.READ_EXTERNAL_STORAGE) = " + pmInstance.shouldGrantPermission("android.permission.READ_EXTERNAL_STORAGE")); pmInstance.requestPermissions(tmpStr, requestDoneCallback); requested = true; } else { systemCheckFailCount++; } } } }} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now