Hi sunyoung,
Have a look at https://in.mathworks.com/help/audio/ug/keyword-spotting-in-noise-using-mfcc-and-lstm-networks.html#KeywordSpottingInNoiseUsingMFCCAndLSTMNetworksExample-3 example to detect commands using Streaming Audio from Microphone.
Hope this helps.