Example #1
0
        private void StartRecordButtonOnClickHandler()
        {
            _startRecordButton.interactable = false;
            _startRecordButton.image.sprite = Mike_Red;
            ARObject.gameObject.SetActive(true);
            //pause the video
            var videoPlayer = ARObject.GetComponent <UnityEngine.Video.VideoPlayer>();

            videoPlayer.Pause();


            //colour.a = 255f;
            //_startRecordButton.GetComponent<Image>().color = colour;


            //_resultText.text = string.Empty;
            _resultText.text = "Button clicked";
            _speechRecognition.StartRecord(true);
        }
Example #2
0
 public void StartRecording(bool withVoiceDetection)
 {
     CurrentResult = "";
     _speechRecognition.StartRecord(withVoiceDetection);
 }
 private void StartRecordButtonOnClickHandler()
 {
     _speechRecognitionState.color = Color.red;
     _speechRecognitionResult.text = string.Empty;
     _speechRecognition.StartRecord(run_time_detect_flag);
 }