枚举 BaseEngine.CallbackMsg
- java.lang.Object
-
- java.lang.Enum<BaseEngine.CallbackMsg>
-
- com.aispeech.base.BaseEngine.CallbackMsg
-
- 所有已实现的接口:
java.io.Serializable
,java.lang.Comparable<BaseEngine.CallbackMsg>
- 封闭类:
- BaseEngine
public static enum BaseEngine.CallbackMsg extends java.lang.Enum<BaseEngine.CallbackMsg>
对外回调消息定义,可以自由定义
-
-
枚举常量概要
枚举常量 枚举常量 说明 MSG_BEGINNING_OF_SPEECH
begin speechMSG_BUFFER_RECEIVED
buffer receivedMSG_CANCEL
cancelMSG_CONNECT_STATE
云端连接状态MSG_DM_ASR
dm asrMSG_DM_CALL
dm executeMSG_DM_DISPLAY
dm displayMSG_DM_END
dm endMSG_DM_PLAY
dm playMSG_DM_QUERY
dm queryMSG_DM_RESULT
dm resultMSG_DOA_RESULT
doa resultMSG_END_OF_SPEECH
end speechMSG_ERROR
errorMSG_GRAMMAR_SUCCESS
grammar successMSG_INIT
initMSG_NOT_ONE_SHOT
not one shotMSG_ONE_SHOT
not one shotMSG_PRE_WAKEUP
previous wakeupMSG_READY_FOR_SPEECH
ready speechMSG_RECORED_RELEASED
recorder releaseMSG_RECORED_STOPPED
recorder stoppedMSG_RESULT_RECEIVE_DATA
RECEIVE DATAMSG_RESULTS
resultMSG_RMS_CHANGED
rms changedMSG_UPDATE_RESULT
update resultMSG_VPRINT_DATA
声纹音频MSG_WAKEUP_STOPPED
wakeup stopped
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static BaseEngine.CallbackMsg
getMsgByValue(int value)
static BaseEngine.CallbackMsg
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。static BaseEngine.CallbackMsg[]
values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-
-
-
枚举常量详细资料
-
MSG_INIT
public static final BaseEngine.CallbackMsg MSG_INIT
init
-
MSG_BEGINNING_OF_SPEECH
public static final BaseEngine.CallbackMsg MSG_BEGINNING_OF_SPEECH
begin speech
-
MSG_END_OF_SPEECH
public static final BaseEngine.CallbackMsg MSG_END_OF_SPEECH
end speech
-
MSG_BUFFER_RECEIVED
public static final BaseEngine.CallbackMsg MSG_BUFFER_RECEIVED
buffer received
-
MSG_RECORED_RELEASED
public static final BaseEngine.CallbackMsg MSG_RECORED_RELEASED
recorder release
-
MSG_ERROR
public static final BaseEngine.CallbackMsg MSG_ERROR
error
-
MSG_READY_FOR_SPEECH
public static final BaseEngine.CallbackMsg MSG_READY_FOR_SPEECH
ready speech
-
MSG_RESULTS
public static final BaseEngine.CallbackMsg MSG_RESULTS
result
-
MSG_RMS_CHANGED
public static final BaseEngine.CallbackMsg MSG_RMS_CHANGED
rms changed
-
MSG_RECORED_STOPPED
public static final BaseEngine.CallbackMsg MSG_RECORED_STOPPED
recorder stopped
-
MSG_WAKEUP_STOPPED
public static final BaseEngine.CallbackMsg MSG_WAKEUP_STOPPED
wakeup stopped
-
MSG_GRAMMAR_SUCCESS
public static final BaseEngine.CallbackMsg MSG_GRAMMAR_SUCCESS
grammar success
-
MSG_DOA_RESULT
public static final BaseEngine.CallbackMsg MSG_DOA_RESULT
doa result
-
MSG_CANCEL
public static final BaseEngine.CallbackMsg MSG_CANCEL
cancel
-
MSG_RESULT_RECEIVE_DATA
public static final BaseEngine.CallbackMsg MSG_RESULT_RECEIVE_DATA
RECEIVE DATA
-
MSG_PRE_WAKEUP
public static final BaseEngine.CallbackMsg MSG_PRE_WAKEUP
previous wakeup
-
MSG_VPRINT_DATA
public static final BaseEngine.CallbackMsg MSG_VPRINT_DATA
声纹音频
-
MSG_DM_ASR
public static final BaseEngine.CallbackMsg MSG_DM_ASR
dm asr
-
MSG_DM_END
public static final BaseEngine.CallbackMsg MSG_DM_END
dm end
-
MSG_DM_QUERY
public static final BaseEngine.CallbackMsg MSG_DM_QUERY
dm query
-
MSG_DM_CALL
public static final BaseEngine.CallbackMsg MSG_DM_CALL
dm execute
-
MSG_DM_DISPLAY
public static final BaseEngine.CallbackMsg MSG_DM_DISPLAY
dm display
-
MSG_DM_PLAY
public static final BaseEngine.CallbackMsg MSG_DM_PLAY
dm play
-
MSG_NOT_ONE_SHOT
public static final BaseEngine.CallbackMsg MSG_NOT_ONE_SHOT
not one shot
-
MSG_ONE_SHOT
public static final BaseEngine.CallbackMsg MSG_ONE_SHOT
not one shot
-
MSG_UPDATE_RESULT
public static final BaseEngine.CallbackMsg MSG_UPDATE_RESULT
update result
-
MSG_DM_RESULT
public static final BaseEngine.CallbackMsg MSG_DM_RESULT
dm result
-
MSG_CONNECT_STATE
public static final BaseEngine.CallbackMsg MSG_CONNECT_STATE
云端连接状态
-
-
方法详细资料
-
values
public static BaseEngine.CallbackMsg[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (BaseEngine.CallbackMsg c : BaseEngine.CallbackMsg.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static BaseEngine.CallbackMsg valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name
- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值
-
getMsgByValue
public static BaseEngine.CallbackMsg getMsgByValue(int value)
-
-