modify SpeechRec sample