public static AuthorizationStatus GetAuthorizationStatus()
 {
                 #if UNITY_ANDROID && !UNITY_EDITOR
     return((AuthorizationStatus)AndroidSpeechRecognizer.AuthorizationStatus());
                 #endif
     return(AuthorizationStatus.NotDetermined);
 }
 public static bool IsRecording()
 {
                 #if UNITY_ANDROID && !UNITY_EDITOR
     return(AndroidSpeechRecognizer.IsRecording());
                 #endif
     return(false);
 }
 public static bool ExistsOnDevice()
 {
                 #if UNITY_ANDROID && !UNITY_EDITOR
     return(AndroidSpeechRecognizer.EngineExists());
                 #endif
     return(false);
 }
Example #4
0
 private static void StartRecording(SpeechRecognitionOptions options)
 {
                 #if UNITY_IOS && !UNITY_EDITOR
     iOSSpeechRecognizer._StartRecording(options.shouldCollectPartialResults);
                 #elif UNITY_ANDROID && !UNITY_EDITOR
     AndroidSpeechRecognizer.StartRecording(options);
                 #endif
 }
Example #5
0
 public static void RequestAccess()
 {
                 #if UNITY_IOS && !UNITY_EDITOR
     iOSSpeechRecognizer._RequestAccess();
                 #elif UNITY_ANDROID && !UNITY_EDITOR
     AndroidSpeechRecognizer.RequestAccess();
                 #endif
 }
Example #6
0
 public static void SetDetectionLanguage(string languageID)
 {
                 #if UNITY_IOS && !UNITY_EDITOR
     iOSSpeechRecognizer._SetDetectionLanguage(languageID);
                 #elif UNITY_ANDROID && !UNITY_EDITOR
     AndroidSpeechRecognizer.SetDetectionLanguage(languageID);
                 #endif
 }
Example #7
0
 public static void GetSupportedLanguages()
 {
                 #if UNITY_IOS && !UNITY_EDITOR
     iOSSpeechRecognizer.SupportedLanguages();
                 #elif UNITY_ANDROID && !UNITY_EDITOR
     AndroidSpeechRecognizer.GetSupportedLanguages();
                 #endif
 }
Example #8
0
 public static void StartRecording(bool shouldCollectPartialResults)
 {
     Debug.Log("StartRecording...");
                 #if UNITY_IOS && !UNITY_EDITOR
     iOSSpeechRecognizer._StartRecording(shouldCollectPartialResults);
                 #elif UNITY_ANDROID && !UNITY_EDITOR
     AndroidSpeechRecognizer.StartRecording(shouldCollectPartialResults);
                 #endif
 }
Example #9
0
 public static void StopIfRecording()
 {
     Debug.Log("StopRecording...");
                 #if UNITY_IOS && !UNITY_EDITOR
     iOSSpeechRecognizer._StopIfRecording();
                 #elif UNITY_ANDROID && !UNITY_EDITOR
     AndroidSpeechRecognizer.StopIfRecording();
                 #endif
 }
Example #10
0
 public static bool ExistsOnDevice()
 {
                 #if UNITY_IOS && !UNITY_EDITOR
     return(iOSSpeechRecognizer._EngineExists());
                 #elif UNITY_ANDROID && !UNITY_EDITOR
     return(AndroidSpeechRecognizer.EngineExists());
                 #endif
     return(false);            // sorry, no support besides Android and iOS :-(
 }
 public void StartSpeechManually()
 {
     Debug.Log("Starting Speech Manually");
     AndroidSpeechRecognizer.Construct(new ScreenRecognitionListenerProxy());
     AndroidSpeechRecognizer.StartListening();
 }
 public static void StartRecording(bool shouldCollectPartialResults)
 {
                 #if UNITY_ANDROID && !UNITY_EDITOR
     AndroidSpeechRecognizer.StartRecording(shouldCollectPartialResults);
                 #endif
 }
 private static void StartRecording(SpeechRecognitionOptions options)
 {
                 #if UNITY_ANDROID && !UNITY_EDITOR
     AndroidSpeechRecognizer.StartRecording(options);
                 #endif
 }
 public static void StopIfRecording()
 {
                 #if UNITY_ANDROID && !UNITY_EDITOR
     AndroidSpeechRecognizer.StopIfRecording();
                 #endif
 }