Class AudioProcessingMode

ru.yandex.speechkit

public  class  AudioProcessingMode 

Processing mode of incoming audio.

There are three audio processing modes:
  • 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.

Methods

booleanequals(Object otherObject)
intgetValue()

Returns the value of the incoming audio processing mode.

StringtoString()

Fields

final AudioProcessingModeECHO_CANCEL

The "acoustic echo cancellation" algorithm is applied to the audio.

final AudioProcessingModeMUTE

Audio recognition is paused and then restarted.

final AudioProcessingModePASS

The audio is passed unmodified.

Constructor Detail

AudioProcessingMode

public AudioProcessingMode (final int value)

Creates an object of the AudioProcessingMode class with the passed value.

Parameters:
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.