Exemplo n.º 1
0
        public static void SetupCallbacks(SpeechUtteranceCallback speechUtteranceCancelled,
                                          SpeechUtteranceCallback speechUtteranceContinued, SpeechUtteranceCallback speechUtteranceFinished,
                                          SpeechUtteranceCallback speechUtterancePaused, SpeechUtteranceCallback speechUtteranceStarted,
                                          StringSpeechUtteranceCallback willSpeakPartOfString)
        {
#if UNITY_IOS
            if (Application.platform == RuntimePlatform.IPhonePlayer || Application.platform == RuntimePlatform.tvOS)
            {
                _SetupCallbacks(speechUtteranceCancelled, speechUtteranceContinued, speechUtteranceFinished,
                                speechUtterancePaused, speechUtteranceStarted, willSpeakPartOfString);
            }
#endif
        }
Exemplo n.º 2
0
 private static extern void _SetupCallbacks(SpeechUtteranceCallback speechUtteranceCancelled,
                                            SpeechUtteranceCallback speechUtteranceContinued, SpeechUtteranceCallback speechUtteranceFinished,
                                            SpeechUtteranceCallback speechUtterancePaused, SpeechUtteranceCallback speechUtteranceStarted,
                                            StringSpeechUtteranceCallback willSpeakPartOfString);