It requires initializing the sound monitor first, and then adjusting the voice and heart rate emotion tests to your own needs.To take Android call as an example,start the voice monitoring code as follows:
Emotiondetectemotiondetect = Emotiondetect.createRecognizer(this,mInitListener);
emotiondetect.startListening(mRecognizerListener);