类 WakeupWord


  • public class WakeupWord
    extends java.lang.Object
    • 构造器概要

      构造器 
      构造器 说明
      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)
      设置唤醒词
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      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()  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 构造器详细资料

      • WakeupWord

        public WakeupWord()
      • WakeupWord

        public WakeupWord​(java.lang.String wakeupWord,
                          float threshold,
                          int major)
        设置唤醒词
        参数:
        wakeupWord - 唤醒词,例:"ni hao xiao chi"
        threshold - 唤醒词对应阈值,是否需要设置和唤醒资源有关系,例:0.35f
        major - 唤醒词的major,主唤醒词为1,副唤醒词为0 (default)
      • WakeupWord

        public WakeupWord​(java.lang.String wakeupWord,
                          float threshold,
                          int major,
                          int dcheck)
        设置唤醒词
        参数:
        wakeupWord - 唤醒词,例:"ni hao xiao chi"
        threshold - 唤醒词对应阈值,是否需要设置和唤醒资源有关系,例:0.35f
        major - 唤醒词的major,主唤醒词为1,副唤醒词为0 (default)
        dcheck - 唤醒是否开启校验,1表示开启校验,0表示不开启校验(default)
      • WakeupWord

        public WakeupWord​(java.lang.String wakeupWord,
                          float threshold,
                          float lowThreshold,
                          int major)
        设置唤醒词
        参数:
        wakeupWord - 唤醒词,例:"ni hao xiao chi"
        threshold - 唤醒词对应阈值,是否需要设置和唤醒资源有关系,例:0.35f
        lowThreshold - 大音量场景下的唤醒阈值,是否需要设置和唤醒资源有关系,例:0.21f
        major - 唤醒词的major,主唤醒词为1,副唤醒词为0 (default)
      • WakeupWord

        public WakeupWord​(java.lang.String wakeupWord,
                          float threshold,
                          float lowThreshold,
                          int major,
                          int dcheck)
        设置唤醒词
        参数:
        wakeupWord - 唤醒词,例:"ni hao xiao chi"
        threshold - 唤醒词对应阈值,是否需要设置和唤醒资源有关系,例:0.35f
        lowThreshold - 大音量场景下的唤醒阈值,是否需要设置和唤醒资源有关系,例:0.21f
        major - 唤醒词的major,主唤醒词为1,副唤醒词为0 (default)
        dcheck - 唤醒是否开启校验,1表示开启校验,0表示不开启校验(default)
    • 方法详细资料

      • getWakeupWord

        public java.lang.String getWakeupWord()
      • setWakeupWord

        public void setWakeupWord​(java.lang.String wakeupWord)
        设置唤醒词,例:"ni hao xiao chi"
        参数:
        wakeupWord - 唤醒词
      • getThreshold

        public float getThreshold()
      • setThreshold

        public void setThreshold​(float threshold)
        设置唤醒词对应阈值,是否需要设置和唤醒资源有关系
        参数:
        threshold - 唤醒词的阈值,例:0.35f
      • getLowThreshold

        public float getLowThreshold()
      • setLowThreshold

        public void setLowThreshold​(float lowThreshold)
        设置大音量场景下的唤醒阈值,是否需要设置和唤醒资源有关系
        参数:
        lowThreshold - 大音量场景下的唤醒阈值,例:0.21f
      • getMajor

        public int getMajor()
      • setMajor

        public void setMajor​(int major)
        设置唤醒词的major,即主副唤醒词,主唤醒词唤醒后会回滚唤醒音频
        参数:
        major - 主唤醒词为1,副唤醒词为0 (default)
      • getDcheck

        public int getDcheck()
      • setDcheck

        public void setDcheck​(int dcheck)
        设置唤醒是否开启校验
        参数:
        dcheck - 是否开启校验,1表示开启校验,0表示不开启校验(default)
      • isValid

        public boolean isValid()
      • toString

        public java.lang.String toString()
        覆盖:
        toString 在类中 java.lang.Object