public void Start() { audObj = GetComponent <AudioRec>(); emotionRangeArray = new string[] { "neutral", "calm", "happy", "sad", "angry", "fearful", "disgust", "surprised" }; emotionCorrectArray = new string[] { "surprised", "sad", "angry", "sad", "fearful", "disgust", "sad", "happy" }; //emotionCorrectArray = new string[]{"sad","sad","sad","sad","sad","disgust","sad","happy"}; /* * Example statements to help (what you say doesn't matter though): * surprised = "What?! You can't fire me!" * sad = "Oh no, I can't believe this is happening..." * angry = "F**k you, you can't do that!" * fearful = "What am I gonna do?!" / "I'm never gonna get a job!" * neutral = "Whatever I guess." * disgust = "Ugh I don't wanna go to therapy." * calm = "I feel better now." * happy = "This is so much better!" */ }
public void RecordMicrophone() { isRecording = !isRecording; AudioRec.RecordAudio(); if (isRecording) { microphoneIcon.SetActive(false); stopIcon.SetActive(true); microphoneDescription.text = "Parar de gravar"; } else { microphoneIcon.SetActive(true); stopIcon.SetActive(false); microphoneDescription.text = "Gravar sua voz"; } }
public MainWindow() { InitializeComponent(); audioRec = new AudioRec(); InitAudioView(); threadAudio = new LabelTimeThread(LabelTimeAudio); audioRec.ThreadLabelTimeEventStart += threadAudio.Start; audioRec.ThreadLabelTimeEventStop += threadAudio.Stop; audioRec.MetroMessageBoxEvent += MetroMessageBox; videoRec = new VideoRec(sampleImage); InitVideoView(); threadVideo = new LabelTimeThread(LabelTimeVideo); videoRec.ThreadLabelTimeEventStart += threadVideo.Start; videoRec.ThreadLabelTimeEventStop += threadVideo.Stop; videoRec.MetroMessageBoxEvent += MetroMessageBox; InitSettings(); }
public void ListenAudio() { AudioRec.ListenAudio(); }