public class BghvsConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
bghvsDelayInFrmNums
BGHVS algorithm delay, frame number, 10ms per frame.
|
private int |
bghvsEosLenInMs
How long to trigger EOS (End of Speech), in ms.
|
private int |
bghvsSosLenInMs
How long to trigger SOS (Start of Speech), in ms.
|
private Constants.BghvsSuppressionMode |
bghvsSppMode
BGHVS aggressive level.
|
private boolean |
enabled
Whether to enable sessCtrl and BGHVS.
|
| Constructor and Description |
|---|
BghvsConfig() |
BghvsConfig(boolean enabled,
int bghvsSosLenInMs,
int bghvsEosLenInMs,
Constants.BghvsSuppressionMode bghvsSppMode,
int bghvsDelayInFrmNums)
Constructs a BghvsConfig object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBghvsDelayInFrmNums()
Gets the BGHVS algorithm delay in frame numbers.
|
int |
getBghvsEosLenInMs()
Gets the EOS trigger length in milliseconds.
|
int |
getBghvsSosLenInMs()
Gets the SOS trigger length in milliseconds.
|
Constants.BghvsSuppressionMode |
getBghvsSppMode()
Gets the BGHVS suppression mode.
|
boolean |
isEnabled()
Checks if BGHVS is enabled.
|
void |
setBghvsDelayInFrmNums(int bghvsDelayInFrmNums)
Sets the BGHVS algorithm delay in frame numbers.
|
void |
setBghvsEosLenInMs(int bghvsEosLenInMs)
Sets the EOS trigger length in milliseconds.
|
void |
setBghvsSosLenInMs(int bghvsSosLenInMs)
Sets the SOS trigger length in milliseconds.
|
void |
setBghvsSppMode(Constants.BghvsSuppressionMode bghvsSppMode)
Sets the BGHVS suppression mode.
|
void |
setEnabled(boolean enabled)
Sets whether to enable BGHVS.
|
java.lang.String |
toString() |
private boolean enabled
private int bghvsSosLenInMs
private int bghvsEosLenInMs
private Constants.BghvsSuppressionMode bghvsSppMode
Constants.BghvsSuppressionMode.
// NOTE: Assuming BghvsSuppressionMode is or will be defined in
io.agora.rtc.Constantsprivate int bghvsDelayInFrmNums
public BghvsConfig()
public BghvsConfig(boolean enabled,
int bghvsSosLenInMs,
int bghvsEosLenInMs,
Constants.BghvsSuppressionMode bghvsSppMode,
int bghvsDelayInFrmNums)
enabled - Whether to enable BGHVS. true to enable,
false to disable (default).bghvsSosLenInMs - How long to trigger SOS, in ms.bghvsEosLenInMs - How long to trigger EOS, in ms.bghvsSppMode - BGHVS aggressive level. See
Constants.BghvsSuppressionMode.bghvsDelayInFrmNums - BGHVS algorithm delay in frame numbers (10ms per
frame).public boolean isEnabled()
true if BGHVS is enabled, false otherwise.public void setEnabled(boolean enabled)
enabled - true to enable BGHVS, false to disable.public int getBghvsSosLenInMs()
public void setBghvsSosLenInMs(int bghvsSosLenInMs)
bghvsSosLenInMs - The SOS trigger length in ms.public int getBghvsEosLenInMs()
public void setBghvsEosLenInMs(int bghvsEosLenInMs)
bghvsEosLenInMs - The EOS trigger length in ms.public Constants.BghvsSuppressionMode getBghvsSppMode()
Constants.BghvsSuppressionMode.public void setBghvsSppMode(Constants.BghvsSuppressionMode bghvsSppMode)
bghvsSppMode - The BGHVS suppression mode. See
Constants.BghvsSuppressionMode.public int getBghvsDelayInFrmNums()
public void setBghvsDelayInFrmNums(int bghvsDelayInFrmNums)
bghvsDelayInFrmNums - The delay in frame numbers (10ms per frame).public java.lang.String toString()
toString in class java.lang.Object