@@ -0,0 +1,1421 @@
+package com.iotai.alexaclient.alexa;%0A%0Aimport com.iotai.alexaclient.message.Directive;%0Aimport com.iotai.alexaclient.message.Event;%0A%0A/**%0A * Created by zhangjf9 on 2017/10/17.%0A */%0A%0Apublic class SpeechRecognizer implements AlexaInterface %7B%0A    enum State %7B%0A        IDLE,%0A        RECOGNIZING,%0A        BUSY,%0A        EXPECTING_SPEECH%0A    %7D%0A%0A    private State mState = State.IDLE;%0A%0A    @Override%0A    public String getName() %7B%0A        return AlexaInterfaceNames.SPEECH_RECOGNIZER;%0A    %7D%0A%0A    @Override%0A    public boolean initialize() %7B%0A        return false;%0A    %7D%0A%0A    @Override%0A    public boolean release() %7B%0A        return false;%0A    %7D%0A%0A    @Override%0A    public Event getCurrentState() %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    public void onDirectiveReceived(Directive directive) %7B%0A        if ((directive == null)%7C%7C(directive.getHeader() == null))%0A            return;%0A%0A        switch (directive.getHeader().getName())%0A        %7B%0A            case %22StopCapture%22:%0A                stopCapture();%0A                mState = State.IDLE;%0A                break;%0A            case %22ExpectSpeech%22:%0A                if (startCapture())%0A                    mState = State.RECOGNIZING;%0A                else%0A                    mState = State.IDLE;%0A                break;%0A            default:%0A                break;%0A        %7D%0A    %7D%0A%0A    private boolean startCapture() %7B%0A        return true;%0A    %7D%0A%0A    private void stopCapture() %7B%0A%0A    %7D%0A%7D%0A

add SpeechRecognizer