com.aispeech.dui.dds.agent.wakeup

## Interface WakeupCallback

-     public interface WakeupCallback

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.json.JSONObject` | `onWakeup(org.json.JSONObject wakeupResult)` 唤醒回调

- - ### Method Detail

    - #### onWakeup

          org.json.JSONObject onWakeup(org.json.JSONObject wakeupResult)

      唤醒回调
      Parameters:
        `wakeupResult` - 唤醒状态

        wakeupResult.optString("word");// 唤醒词

        wakeupResult.optString("type");// 唤醒状态: major: 正常唤醒 command: 命令唤醒 interrupt: 打断唤醒

        wakeupResult.optString("gender");// 性别: male / female

        wakeupResult.optString("action");// 命令唤醒的动作

      Returns:
        返回欢迎语 : new JSONObject().put("greeting", "你好");