SpeechRecognitionを利用し、音声認識をします。
音声認識後、kuromoji.jsを利用し形態素解析を行います。
音声認識後、SpeechSynthesisUtteranceを利用し、復唱します。
Googleの公式デモです。