Esempio n. 1
0
        public static void startTmall(IAIAudioCallbackListener listener)
        {
            if (aiAudioFactory == null)
            {
                callBack = new AIAudioListener();
                callBack.setListener(listener);
                aiAudioFactory = new AndroidJavaClass("com.bowhead.sheldon.aiaudio.AIAudioFactory");

                AndroidJavaObject AIAudio = aiAudioFactory.CallStatic <AndroidJavaObject>("getTmall");

                AndroidJavaObject context = AndroidContextHolder.GetAndroidContext();

                AIAudio.Call("startService", context, callBack);
            }
            else
            {
                callBack.setListener(listener);
            }
        }
 public void startRecognize(bool isVad,IAIAudioCallbackListener listener){
     AIAudioListener mAIAudioListener = new AIAudioListener();
     mAIAudioListener.setListener(listener);
     AIAudio.Call("startRecognize",isVad,mAIAudioListener);
 }