AIFespCarEngine
@Deprecated
public class AIDmaspEngine
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DMASP_CAR_DOA_COPILOT
Deprecated.
副驾驶方位 doa
|
static int |
DMASP_CAR_DOA_LEFT_BACKSEAT
Deprecated.
左后 doa
|
static int |
DMASP_CAR_DOA_MAIN
Deprecated.
主驾驶方位 doa
|
static int |
DMASP_CAR_DOA_RIGHT_BACKSEAT
Deprecated.
右后 doa
|
static int |
DMASP_CAR_DRIVE_MODE_COPILOT
Deprecated.
副驾驶模式,指向副驾驶方位
|
static int |
DMASP_CAR_DRIVE_MODE_ENTIRE
Deprecated.
全车模式,无指向
|
static int |
DMASP_CAR_DRIVE_MODE_FREE_COMBINTION
Deprecated.
自由自核模式,无指向
|
static int |
DMASP_CAR_DRIVE_MODE_MAIN
Deprecated.
主驾模式,指向主驾驶方位
|
static int |
DMASP_CAR_DRIVE_MODE_POSITIONING
Deprecated.
定位模式,指向唤醒方位
|
Modifier and Type | Method and Description |
---|---|
static boolean |
checkLibValid()
Deprecated.
检查唤醒内核是否准备好,外部可以不关注
|
void |
destroy()
Deprecated.
销毁唤醒内核
|
void |
feed(byte[] data)
Deprecated.
设置不使用内部录音机时可用,自行feed音频数据
|
int |
getDriveMode()
Deprecated.
获取 驾驶模式
|
static AIDmaspEngine |
getInstance()
Deprecated.
4mic 唤醒引擎
|
int |
getValueOf(java.lang.String param)
Deprecated.
get value
|
void |
init(AIDmaspConfig aiDmaspConfig,
AIDmaspListener listener)
Deprecated.
|
boolean |
isWakeupSsp()
Deprecated.
获取唤醒资源是否带VAD状态流
|
void |
notifyDialogEnd()
Deprecated.
定位模式下通知引擎回正 beamforming 指向,定位模式下需要外部在结束对话状态后通知到引擎内部
|
void |
parseIntent(AIDmaspIntent aiDmaspIntent)
Deprecated.
|
void |
resetDriveMode()
Deprecated.
|
void |
setDoaManually(int doa)
Deprecated.
在定位模式下,手动设置为主驾唤醒或者副驾唤醒
|
void |
setDriveMode(int driveMode)
Deprecated.
设置驾驶模式, 0为定位模式, 按照声源定位;1为主驾模式;2为副驾模式;3为全车模式
|
void |
setDriveMode(int driveMode,
int wakeupChannelMask)
Deprecated.
设置驾驶模式,此方法主要为自由组合模式传入wakeupChannelMask参数
|
void |
setWakeupWords(java.lang.String[] wakeupWord,
float[] threshold,
int[] majors)
Deprecated.
动态调整参数,具体请参照 demo
|
void |
start(AIDmaspIntent intent)
Deprecated.
开启唤醒
|
void |
startNWakeup()
Deprecated.
开启唤醒,仅仅开启唤醒,并且是在前端信号处理正常的情况下开启唤醒
|
void |
stop()
Deprecated.
关闭前端信号处理和唤醒,如果使用内部录音机的话一并关闭
|
void |
stopNWakeup()
Deprecated.
关闭唤醒,仅仅关闭唤醒
|
public static final int DMASP_CAR_DRIVE_MODE_POSITIONING
public static final int DMASP_CAR_DRIVE_MODE_MAIN
public static final int DMASP_CAR_DRIVE_MODE_COPILOT
public static final int DMASP_CAR_DRIVE_MODE_ENTIRE
public static final int DMASP_CAR_DRIVE_MODE_FREE_COMBINTION
public static final int DMASP_CAR_DOA_MAIN
public static final int DMASP_CAR_DOA_COPILOT
public static final int DMASP_CAR_DOA_LEFT_BACKSEAT
public static final int DMASP_CAR_DOA_RIGHT_BACKSEAT
public static AIDmaspEngine getInstance()
public void init(AIDmaspConfig aiDmaspConfig, AIDmaspListener listener)
public void parseIntent(AIDmaspIntent aiDmaspIntent)
public void feed(byte[] data)
data
- 音频数据public int getValueOf(java.lang.String param)
param
- keypublic void start(AIDmaspIntent intent)
intent
- 唤醒启动配置信息public void startNWakeup()
public void setWakeupWords(java.lang.String[] wakeupWord, float[] threshold, int[] majors) throws IllegalPinyinException
wakeupWord
- 唤醒词,参数示例:["ni hao xiao chi","xiao bu xiao bu"]threshold
- 唤醒词对应的阈值,参数示例:[0.2, 0.3]majors
- 是否主唤醒词,主唤醒词为1,副唤醒词为0,如 [1,0]
设置主唤醒词后,内核会对唤醒词部分音频进行回溯IllegalPinyinException
- IllegalPinyinException
非法拼音异常public void stop()
public void stopNWakeup()
public void destroy()
public static boolean checkLibValid()
public boolean isWakeupSsp()
public void notifyDialogEnd()
public void resetDriveMode()
public int getDriveMode()
public void setDriveMode(int driveMode)
driveMode
- public void setDriveMode(int driveMode, int wakeupChannelMask)
driveMode
- 0为定位模式, 按照声源定位;1为主驾模式;2为副驾模式;3为全车模式,4为自由组合模式wakeupChannelMask
- 自由驾驶模式的组合:整数的二进制表示
0001:主驾
0010:副驾
0100:左后
1000:右后
1111:主+副+左后+右后public void setDoaManually(int doa)
doa
- 1为主驾唤醒; 2为副驾唤醒;