public class WakeupWord
extends java.lang.Object
Constructor and Description |
---|
WakeupWord() |
WakeupWord(java.lang.String wakeupWord,
float threshold,
float lowThreshold,
int major)
设置唤醒词
|
WakeupWord(java.lang.String wakeupWord,
float threshold,
float lowThreshold,
int major,
int dcheck)
设置唤醒词
|
WakeupWord(java.lang.String wakeupWord,
float threshold,
int major)
设置唤醒词
|
WakeupWord(java.lang.String wakeupWord,
float threshold,
int major,
int dcheck)
设置唤醒词
|
Modifier and Type | Method and Description |
---|---|
int |
getDcheck() |
float |
getLowThreshold() |
int |
getMajor() |
float |
getThreshold() |
java.lang.String |
getWakeupWord() |
boolean |
isValid() |
void |
setDcheck(int dcheck)
设置唤醒是否开启校验
|
void |
setLowThreshold(float lowThreshold)
设置大音量场景下的唤醒阈值,是否需要设置和唤醒资源有关系
|
void |
setMajor(int major)
设置唤醒词的major,即主副唤醒词,主唤醒词唤醒后会回滚唤醒音频
|
void |
setThreshold(float threshold)
设置唤醒词对应阈值,是否需要设置和唤醒资源有关系
|
void |
setWakeupWord(java.lang.String wakeupWord)
设置唤醒词,例:"ni hao xiao chi"
|
java.lang.String |
toString() |
public WakeupWord()
public WakeupWord(java.lang.String wakeupWord, float threshold, int major)
wakeupWord
- 唤醒词,例:"ni hao xiao chi"threshold
- 唤醒词对应阈值,是否需要设置和唤醒资源有关系,例:0.35fmajor
- 唤醒词的major,主唤醒词为1,副唤醒词为0 (default)public WakeupWord(java.lang.String wakeupWord, float threshold, int major, int dcheck)
wakeupWord
- 唤醒词,例:"ni hao xiao chi"threshold
- 唤醒词对应阈值,是否需要设置和唤醒资源有关系,例:0.35fmajor
- 唤醒词的major,主唤醒词为1,副唤醒词为0 (default)dcheck
- 唤醒是否开启校验,1表示开启校验,0表示不开启校验(default)public WakeupWord(java.lang.String wakeupWord, float threshold, float lowThreshold, int major)
wakeupWord
- 唤醒词,例:"ni hao xiao chi"threshold
- 唤醒词对应阈值,是否需要设置和唤醒资源有关系,例:0.35flowThreshold
- 大音量场景下的唤醒阈值,是否需要设置和唤醒资源有关系,例:0.21fmajor
- 唤醒词的major,主唤醒词为1,副唤醒词为0 (default)public WakeupWord(java.lang.String wakeupWord, float threshold, float lowThreshold, int major, int dcheck)
wakeupWord
- 唤醒词,例:"ni hao xiao chi"threshold
- 唤醒词对应阈值,是否需要设置和唤醒资源有关系,例:0.35flowThreshold
- 大音量场景下的唤醒阈值,是否需要设置和唤醒资源有关系,例:0.21fmajor
- 唤醒词的major,主唤醒词为1,副唤醒词为0 (default)dcheck
- 唤醒是否开启校验,1表示开启校验,0表示不开启校验(default)public java.lang.String getWakeupWord()
public void setWakeupWord(java.lang.String wakeupWord)
wakeupWord
- 唤醒词public float getThreshold()
public void setThreshold(float threshold)
threshold
- 唤醒词的阈值,例:0.35fpublic float getLowThreshold()
public void setLowThreshold(float lowThreshold)
lowThreshold
- 大音量场景下的唤醒阈值,例:0.21fpublic int getMajor()
public void setMajor(int major)
major
- 主唤醒词为1,副唤醒词为0 (default)public int getDcheck()
public void setDcheck(int dcheck)
dcheck
- 是否开启校验,1表示开启校验,0表示不开启校验(default)public boolean isValid()
public java.lang.String toString()
toString
in class java.lang.Object