Class YSKAudioProcessingMode

Mode of processing audio received for detection.

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" (echoCancel) algorithm is applied to the audio.

Class Methods

+echoCancel

Creates an object of the YSKAudioProcessingMode class that corresponds to the echoCancel audio processing mode (the voice recorded using a microphone is processed by the echo cancellation algorithm, so the recorded speech does not contain the so-called far-end signal, but is slightly distorted by the algorithm).

+mute

Creates an object of the YSKAudioProcessingMode class that corresponds to the mute audio processing mode (the voice recorded using a microphone can be paused for a while and then restarted).

+pass

Creates an object of the YSKAudioProcessingMode class corresponding to the pass audio processing mode (the voice recorded using a microphone is not processed).

Method Detail

+echoCancel

+ (instancetype)echoCancel

Creates an object of the YSKAudioProcessingMode class that corresponds to the echoCancel audio processing mode (the voice recorded using a microphone is processed by the echo cancellation algorithm, so the recorded speech does not contain the so-called far-end signal, but is slightly distorted by the algorithm).

Returns:

Object of the YSKAudioProcessingMode class that corresponds to the selected mode.

+mute

+ (instancetype)mute

Creates an object of the YSKAudioProcessingMode class that corresponds to the mute audio processing mode (the voice recorded using a microphone can be paused for a while and then restarted).

Returns:

Object of the YSKAudioProcessingMode class that corresponds to the selected mode.

+pass

+ (instancetype)pass

Creates an object of the YSKAudioProcessingMode class corresponding to the pass audio processing mode (the voice recorded using a microphone is not processed).

Returns:

Object of the YSKAudioProcessingMode class that corresponds to the selected mode.