Ejemplo n.º 1
0
    public void StartListeningWithExtraLanguage()
    {
        bool isSupported = speechPlugin.CheckSpeechRecognizerSupport();

        if (isSupported)
        {
            // disable beep
            speechPlugin.EnableBeep(false);

            // enable offline
            //speechPlugin.EnableOffline(true);

            // enable partial Results
            speechPlugin.EnablePartialResult(true);

            int numberOfResults = 5;
            speechPlugin.StartListeningWithHackExtraLanguage(numberOfResults, currentExtraLocale.GetDescription());
        }
        else
        {
            Debug.Log("Speech Recognizer not supported by this Android device ");
        }
    }