com.aispeech.dui.dds.agent.wakeup.word

## Class WordProxy

- java.lang.Object
- - com.aispeech.dui.dds.agent.wakeup.word.WordProxy

-     public class WordProxy
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `WordProxy()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addCommandWakeupWord(java.lang.String[] actions, java.lang.String[] words, java.lang.String[] pinyin, java.lang.String[] threshold, java.lang.String[][] greetings)` Deprecated.
    `void` | `addCommandWakeupWords(java.util.List<WakeupWord> wakeupWordList)` 添加命令唤醒词，且不会覆盖之前的命令唤醒词
    `void` | `addMainWakeupWord(java.lang.String[] words, java.lang.String[] pinyin, java.lang.String[] threshold, java.lang.String[][] greetings)` Deprecated.
    `void` | `addMainWakeupWords(java.util.List<WakeupWord> wakeupWordList)` 添加主唤醒词的接口
    `void` | `addQuickStartWords(java.util.List<WakeupWord> wakeupWordList)` 添加QuickStart词的接口
    `void` | `addShortcutWakeupWord(java.lang.String[] words, java.lang.String[] pinyin, java.lang.String[] threshold)` Deprecated.
    `void` | `addShortcutWakeupWords(java.util.List<WakeupWord> wakeupWordList)` 添加新的打断唤醒词，且不会覆盖之前的唤醒词
    `void` | `clearCommandWakeupWord()` 清空命令唤醒词的接口
    `void` | `clearIncrementCommandWakeupWord()` 清空命令唤醒词的接口
    `void` | `clearIncrementShortCutWakeupWord()` 清空 本地增量识别 打断唤醒词的接口
    `void` | `clearIncrementWakeupWord()` 清空 本地增量识别 命令唤醒词的接口
    `void` | `clearMainWakeupWords()` 清除主唤醒词的接口
    `void` | `clearQuickStartWords()` 清除QuickStart词的接口
    `void` | `clearShortCutWakeupWord()` 清空打断唤醒词的接口
    `BusClient.RPCResult` | `getGreetingRecResult(org.json.JSONObject wakeupResult)` 定制欢迎语
    `java.lang.String` | `getMinorWakeupWord()` 获取当前的副唤醒词
    `java.lang.String[]` | `getWakeupWords()` 获取当前的唤醒词
    `void` | `removeCommandWakeupWord(java.lang.String[] words)` Deprecated.
    `void` | `removeCommandWakeupWords(java.util.List<WakeupWord> wakeupWordList)` 移除指定的命令唤醒词
    `void` | `removeMainWakeupWord(java.lang.String[] words)` Deprecated.
    `void` | `removeMainWakeupWords(java.util.List<WakeupWord> wakeupWordList)` 删除主唤醒词的接口
    `void` | `removeQuickStartWords(java.util.List<WakeupWord> wakeupWordList)` 删除QuickStart词的接口
    `void` | `removeShortcutWakeupWord(java.lang.String[] words)` Deprecated.
    `void` | `removeShortcutWakeupWords(java.util.List<WakeupWord> wakeupWordList)` 移除指定的打断唤醒词
    `void` | `setWakeupCallback(WakeupCallback wakeupCallback)` 设置自定义欢迎语的回调
    `void` | `updateCommandWakeupWord(java.lang.String[] actions, java.lang.String[] words, java.lang.String[] pinyin, java.lang.String[] threshold, java.lang.String[][] greetings)` Deprecated.
    `void` | `updateCommandWakeupWords(java.util.List<WakeupWord> wakeupWordList)` 更新命令唤醒词的接口
    `void` | `updateMainWakeupWords(java.util.List<WakeupWord> wakeupWordList)` 更新主唤醒词的接口
    `void` | `updateMinorWakeupWord(java.lang.String word, java.lang.String pinyin, java.lang.String threshold, java.lang.String[] greetings)` Deprecated.
    `void` | `updateMinorWakeupWord(WakeupWord wakeupWord)` 更新副唤醒词的接口
    `void` | `updateQuickStartWords(java.util.List<WakeupWord> wakeupWordList)` 更新QuickStart词的接口
    `void` | `updateShortcutWakeupWord(java.lang.String[] words, java.lang.String[] pinyin, java.lang.String[] threshold)` Deprecated.
    `void` | `updateShortcutWakeupWords(java.util.List<WakeupWord> wakeupWordList)` 更新打断唤醒词的接口,这类唤醒词能打断正在播报的语音并且将唤醒词送入识别
    `void` | `updateWakeupWords(java.util.List<WakeupWordIntent> intents)` 更新唤醒词,合并请求

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### WordProxy

          public WordProxy()

  - ### Method Detail

    - #### getGreetingRecResult

          public BusClient.RPCResult getGreetingRecResult(org.json.JSONObject wakeupResult)

      定制欢迎语
      Parameters:
        `wakeupResult` - 唤醒状态
      Returns:
        欢迎语

    - #### setWakeupCallback

          public void setWakeupCallback(WakeupCallback wakeupCallback)

      设置自定义欢迎语的回调
      Parameters:
        `wakeupCallback` - 自定义唤醒的回调

    - #### updateWakeupWords

          public void updateWakeupWords(java.util.List<WakeupWordIntent> intents)
                                 throws DDSNotInitCompleteException

      更新唤醒词,合并请求
      Parameters:
        `intents` - 合并请求意图
      Throws:
        `DDSNotInitCompleteException`

    - #### addMainWakeupWords

          public void addMainWakeupWords(java.util.List<WakeupWord> wakeupWordList)
                                  throws DDSNotInitCompleteException

      添加主唤醒词的接口
      Throws:
        `DDSNotInitCompleteException`

    - #### removeMainWakeupWords

          public void removeMainWakeupWords(java.util.List<WakeupWord> wakeupWordList)
                                     throws DDSNotInitCompleteException

      删除主唤醒词的接口
      Throws:
        `DDSNotInitCompleteException`

    - #### updateMainWakeupWords

          public void updateMainWakeupWords(java.util.List<WakeupWord> wakeupWordList)
                                     throws DDSNotInitCompleteException

      更新主唤醒词的接口
      Throws:
        `DDSNotInitCompleteException`

    - #### clearMainWakeupWords

          public void clearMainWakeupWords()
                                    throws DDSNotInitCompleteException

      清除主唤醒词的接口
      Throws:
        `DDSNotInitCompleteException`

    - #### addQuickStartWords

          public void addQuickStartWords(java.util.List<WakeupWord> wakeupWordList)
                                  throws DDSNotInitCompleteException

      添加QuickStart词的接口
      Throws:
        `DDSNotInitCompleteException`

    - #### removeQuickStartWords

          public void removeQuickStartWords(java.util.List<WakeupWord> wakeupWordList)
                                     throws DDSNotInitCompleteException

      删除QuickStart词的接口
      Throws:
        `DDSNotInitCompleteException`

    - #### updateQuickStartWords

          public void updateQuickStartWords(java.util.List<WakeupWord> wakeupWordList)
                                     throws DDSNotInitCompleteException

      更新QuickStart词的接口
      Throws:
        `DDSNotInitCompleteException`

    - #### clearQuickStartWords

          public void clearQuickStartWords()
                                    throws DDSNotInitCompleteException

      清除QuickStart词的接口
      Throws:
        `DDSNotInitCompleteException`

    - #### updateMinorWakeupWord

          public void updateMinorWakeupWord(WakeupWord wakeupWord)
                                     throws DDSNotInitCompleteException

      更新副唤醒词的接口
      Throws:
        `DDSNotInitCompleteException`

    - #### updateCommandWakeupWords

          public void updateCommandWakeupWords(java.util.List<WakeupWord> wakeupWordList)
                                        throws DDSNotInitCompleteException

      更新命令唤醒词的接口
      Throws:
        `DDSNotInitCompleteException`

    - #### addCommandWakeupWords

          public void addCommandWakeupWords(java.util.List<WakeupWord> wakeupWordList)
                                     throws DDSNotInitCompleteException

      添加命令唤醒词，且不会覆盖之前的命令唤醒词
      Throws:
        `DDSNotInitCompleteException`

    - #### removeCommandWakeupWords

          public void removeCommandWakeupWords(java.util.List<WakeupWord> wakeupWordList)
                                        throws DDSNotInitCompleteException

      移除指定的命令唤醒词
      Throws:
        `DDSNotInitCompleteException`

    - #### updateShortcutWakeupWords

          public void updateShortcutWakeupWords(java.util.List<WakeupWord> wakeupWordList)
                                         throws DDSNotInitCompleteException

      更新打断唤醒词的接口,这类唤醒词能打断正在播报的语音并且将唤醒词送入识别
      Throws:
        `DDSNotInitCompleteException`

    - #### addShortcutWakeupWords

          public void addShortcutWakeupWords(java.util.List<WakeupWord> wakeupWordList)
                                      throws DDSNotInitCompleteException

      添加新的打断唤醒词，且不会覆盖之前的唤醒词
      Throws:
        `DDSNotInitCompleteException`

    - #### removeShortcutWakeupWords

          public void removeShortcutWakeupWords(java.util.List<WakeupWord> wakeupWordList)
                                         throws DDSNotInitCompleteException

      移除指定的打断唤醒词
      Throws:
        `DDSNotInitCompleteException`

    - #### getWakeupWords

          public java.lang.String[] getWakeupWords()
                                            throws DDSNotInitCompleteException

      获取当前的唤醒词
      Throws:
        `DDSNotInitCompleteException`

    - #### getMinorWakeupWord

          public java.lang.String getMinorWakeupWord()
                                              throws DDSNotInitCompleteException

      获取当前的副唤醒词
      Throws:
        `DDSNotInitCompleteException`

    - #### clearCommandWakeupWord

          public void clearCommandWakeupWord()
                                      throws DDSNotInitCompleteException

      清空命令唤醒词的接口
      Throws:
        `DDSNotInitCompleteException`

    - #### clearShortCutWakeupWord

          public void clearShortCutWakeupWord()
                                       throws DDSNotInitCompleteException

      清空打断唤醒词的接口
      Throws:
        `DDSNotInitCompleteException`

    - #### clearIncrementCommandWakeupWord

          public void clearIncrementCommandWakeupWord()
                                               throws DDSNotInitCompleteException

      清空命令唤醒词的接口
      Throws:
        `DDSNotInitCompleteException`

    - #### clearIncrementShortCutWakeupWord

          public void clearIncrementShortCutWakeupWord()
                                                throws DDSNotInitCompleteException

      清空 本地增量识别 打断唤醒词的接口
      Throws:
        `DDSNotInitCompleteException`

    - #### clearIncrementWakeupWord

          public void clearIncrementWakeupWord()
                                        throws DDSNotInitCompleteException

      清空 本地增量识别 命令唤醒词的接口
      Throws:
        `DDSNotInitCompleteException`

    - #### addMainWakeupWord

          @Deprecated
          public void addMainWakeupWord(java.lang.String[] words,
                                                    java.lang.String[] pinyin,
                                                    java.lang.String[] threshold,
                                                    java.lang.String[][] greetings)
                                             throws DDSNotInitCompleteException

      Deprecated.
      添加主唤醒词的接口
      Throws:
        `DDSNotInitCompleteException`

    - #### removeMainWakeupWord

          @Deprecated
          public void removeMainWakeupWord(java.lang.String[] words)
                                                throws DDSNotInitCompleteException

      Deprecated.
      删除主唤醒词的接口
      Throws:
        `DDSNotInitCompleteException`

    - #### updateMinorWakeupWord

          @Deprecated
          public void updateMinorWakeupWord(java.lang.String word,
                                                        java.lang.String pinyin,
                                                        java.lang.String threshold,
                                                        java.lang.String[] greetings)
                                                 throws DDSNotInitCompleteException

      Deprecated.
      更新副唤醒词的接口
      Throws:
        `DDSNotInitCompleteException`

    - #### updateCommandWakeupWord

          @Deprecated
          public void updateCommandWakeupWord(java.lang.String[] actions,
                                                          java.lang.String[] words,
                                                          java.lang.String[] pinyin,
                                                          java.lang.String[] threshold,
                                                          java.lang.String[][] greetings)
                                                   throws DDSNotInitCompleteException

      Deprecated.
      更新命令唤醒词的接口
      Throws:
        `DDSNotInitCompleteException`

    - #### addCommandWakeupWord

          @Deprecated
          public void addCommandWakeupWord(java.lang.String[] actions,
                                                       java.lang.String[] words,
                                                       java.lang.String[] pinyin,
                                                       java.lang.String[] threshold,
                                                       java.lang.String[][] greetings)
                                                throws DDSNotInitCompleteException

      Deprecated.
      添加命令唤醒词，且不会覆盖之前的命令唤醒词
      Throws:
        `DDSNotInitCompleteException`

    - #### removeCommandWakeupWord

          @Deprecated
          public void removeCommandWakeupWord(java.lang.String[] words)
                                                   throws DDSNotInitCompleteException

      Deprecated.
      移除指定的命令唤醒词
      Throws:
        `DDSNotInitCompleteException`

    - #### updateShortcutWakeupWord

          @Deprecated
          public void updateShortcutWakeupWord(java.lang.String[] words,
                                                           java.lang.String[] pinyin,
                                                           java.lang.String[] threshold)
                                                    throws DDSNotInitCompleteException

      Deprecated.
      更新打断唤醒词的接口,这类唤醒词能打断正在播报的语音并且将唤醒词送入识别
      Throws:
        `DDSNotInitCompleteException`

    - #### addShortcutWakeupWord

          @Deprecated
          public void addShortcutWakeupWord(java.lang.String[] words,
                                                        java.lang.String[] pinyin,
                                                        java.lang.String[] threshold)
                                                 throws DDSNotInitCompleteException

      Deprecated.
      添加新的打断唤醒词，且不会覆盖之前的唤醒词
      Throws:
        `DDSNotInitCompleteException`

    - #### removeShortcutWakeupWord

          @Deprecated
          public void removeShortcutWakeupWord(java.lang.String[] words)
                                                    throws DDSNotInitCompleteException

      Deprecated.
      移除指定的打断唤醒词
      Throws:
        `DDSNotInitCompleteException`