Class AudioProcessingMode
ru.yandex.speechkit
public class AudioProcessingMode
Processing mode of incoming audio.
-
The audio is passed unmodified (
PASS
). -
Audio recognition is paused for a while and then restarted (
MUTE
). -
The "acoustic echo cancellation" (
ECHO_CANCEL
) algorithm is applied to the audio.
Constructors
AudioProcessingMode(final int value) | Creates an object of the AudioProcessingMode class with the passed value. |
AudioProcessingMode(final int value) | Creates an object of the AudioProcessingMode class with the passed value. |
Methods
Fields
final AudioProcessingMode | ECHO_CANCEL | The "acoustic echo cancellation" algorithm is applied to the audio. |
final AudioProcessingMode | MUTE | Audio recognition is paused and then restarted. |
final AudioProcessingMode | PASS | The audio is passed unmodified. |
final AudioProcessingMode | ECHO_CANCEL | The "acoustic echo cancellation" algorithm is applied to the audio. |
final AudioProcessingMode | MUTE | Audio recognition is paused and then restarted. |
final AudioProcessingMode | PASS | The audio is passed unmodified. |
Constructor Detail
AudioProcessingMode
public AudioProcessingMode (final int value)
Creates an object of the AudioProcessingMode class with the passed value.
value | The value of the processing mode of the incoming audio. |
value | The value of the processing mode of the incoming audio. |
Method Detail
equals
public boolean equals (Object otherObject)
getValue
public int getValue ()
Returns the value of the incoming audio processing mode.
Returns:
The value of the processing mode of the incoming audio.
toString
public String toString ()
Field Detail
ECHO_CANCEL
public static ECHO_CANCEL = new AudioProcessingMode(2)
The "acoustic echo cancellation" algorithm is applied to the audio.
MUTE
public static MUTE = new AudioProcessingMode(1)
Audio recognition is paused and then restarted.
PASS
public static PASS = new AudioProcessingMode(0)
The audio is passed unmodified.