类 VadInterceptor
- java.lang.Object
-
- com.aispeech.export.interceptor.AbstractCostInterceptor
-
- com.aispeech.export.interceptor.VadInterceptor
-
- 所有已实现的接口:
IInterceptor
public abstract class VadInterceptor extends AbstractCostInterceptor
vad 消息拦截器
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 com.aispeech.export.interceptor.IInterceptor
IInterceptor.FlowType, IInterceptor.Layer, IInterceptor.Name
-
-
构造器概要
构造器 构造器 说明 VadInterceptor()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 abstract java.lang.String
customIntercept(java.lang.String layer, java.lang.String flowType, org.json.JSONObject custom, java.lang.String vadResult)
自定义拦截处理逻辑org.json.JSONObject
handleIntercept(java.lang.String layer, java.lang.String flowType, org.json.JSONObject custom)
自定义拦截处理逻辑-
从类继承的方法 com.aispeech.export.interceptor.AbstractCostInterceptor
getInputObj, intercept
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 com.aispeech.export.interceptor.IInterceptor
getName
-
-
-
-
方法详细资料
-
handleIntercept
public org.json.JSONObject handleIntercept(java.lang.String layer, java.lang.String flowType, org.json.JSONObject custom)
从类复制的说明:AbstractCostInterceptor
自定义拦截处理逻辑- 指定者:
handleIntercept
在类中AbstractCostInterceptor
- 参数:
layer
- sdk 层级,如:IInterceptor.Layer
flowType
- 边界流向类型,取值:IInterceptor.FlowType
custom
- 自定义参数- 返回:
- JSONObject inputObj
-
customIntercept
public abstract java.lang.String customIntercept(java.lang.String layer, java.lang.String flowType, org.json.JSONObject custom, java.lang.String vadResult)
自定义拦截处理逻辑- 参数:
layer
- sdk 层级,如:IInterceptor.Layer
flowType
- 边界流向类型,取值:IInterceptor.FlowType
custom
- 自定义参数- 返回:
- String 返回需要修改的VAD结果
-
-