Beispiel #1
0
    IEnumerator stopDictationProc_(Action endCb)
    {
#if WINDOWS_UWP
        yield return(uwpSpeechReco_.StopReco());
#else
        if (MyDictationInputManager.IsListening)
        {
            yield return(MyDictationInputManager.StopRecording());
        }
#endif
        endCb();
    }
Beispiel #2
0
    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();
    }