IEnumerator stopDictationProc_(Action endCb) { #if WINDOWS_UWP yield return(uwpSpeechReco_.StopReco()); #else if (MyDictationInputManager.IsListening) { yield return(MyDictationInputManager.StopRecording()); } #endif endCb(); }
IEnumerator startDictationProc_(Action endCb) { #if WINDOWS_UWP yield return(uwpSpeechReco_.StartReco()); #else if (!MyDictationInputManager.IsListening) { yield return(MyDictationInputManager.StartRecording( gameObject, initialSilenceTimeout, autoSilenceTimeout, recordingTime)); } #endif endCb(); }