private void _bingSpeechAPI_OnRecognise(IBingSpeechAPI sender, RecogniseEventArgs args)
 {
     generatedJSON = args.JsonResponse;
     if (generatedJSON != null)
     {
         apiCall.Convert(generatedJSON);
     }
 }
        public void Start()
        {
            _bingSpeechAPI = CognitiveServicesServiceFactory.Instance.GetBingSpeechAPI(APIKey);
            //IPL = Singleton_Service.GetSingleton<Input_Listeners>();
            //new BingSpeechAPI("94c91aeef0af42ef944e988f520514fd", this);

            _bingSpeechAPI.OnRecognise += _bingSpeechAPI_OnRecognise;
        }
        public string APIKey; // 94c91aeef0af42ef944e988f520514fd

        public void Start()
        {
            _bingSpeechAPI = CognitiveServicesServiceFactory.Instance.GetBingSpeechAPI(APIKey);
            //new BingSpeechAPI("94c91aeef0af42ef944e988f520514fd", this);

            _bingSpeechAPI.TextToSpeechAsync("Hello There");
            _bingSpeechAPI.OnRecognise += _bingSpeechAPI_OnRecognise;
            _bingSpeechAPI.RecogniseAsync(_audioToRecognise);
        }
 private void _bingSpeechAPI_OnTextToSpeech(IBingSpeechAPI sender, TextToSpeechEventArgs args)
 {
     Debug.Log("Got response");
     audioGenerated = args.GeneratedAudio;
 }
Exemple #5
0
        //public UnityEvent OnFire;
        //public UnityEvent OnWalls;
        //public UnityEvent OnDetect;

        void Start()
        {
            _bingSpeechAPI = CognitiveServicesServiceFactory.Instance.GetBingSpeechAPI(APIKey);
            //IPL = Singleton_Service.GetSingleton<Input_Listeners>();
            //wrapper = new Wrapper();
        }
 private void _bingSpeechAPI_OnRecognise(IBingSpeechAPI sender, RecogniseEventArgs args)
 {
     Debug.Log(args.JsonResponse);
 }