AiuiEventListener constructor
AiuiEventListener({
- void onResult(
- AiuiEvent event
- void onIatResult()?,
- void onNlpResult()?,
- void onTppResult(
- AiuiEvent event
- void onTtsResult(
- TtsResult result
- void onITransResult(
- ITransResult result
- void onError()?,
- void onStateChange(
- int stateCode
- void onWakeup(
- WakeupType type,
- String? message
- void onSleep(
- SleepType type
- void onVad(
- VadEventType type, [
- int? volume
- void onCmdReturn()?,
- VoidCallback? onPreSleep,
- VoidCallback? onRecordStart,
- VoidCallback? onRecordStop,
- VoidCallback? onConnectedToServer,
- VoidCallback? onServerDisconnected,
- VoidCallback? onTts,
Implementation
AiuiEventListener({
this.onResult,
this.onIatResult,
this.onNlpResult,
this.onTppResult,
this.onTtsResult,
this.onITransResult,
this.onError,
this.onStateChange,
this.onWakeup,
this.onSleep,
this.onVad,
this.onCmdReturn,
this.onPreSleep,
this.onRecordStart,
this.onRecordStop,
this.onConnectedToServer,
this.onServerDisconnected,
this.onTts,
});