Interface IdentificationListener

ru.yandex.speechkit

public  interface  IdentificationListener 

The interface defines callback methods that are called by an object of the Request class.

Methods

voidonIdentificationDone(@NonNull final VoiceRequest request, @NonNull String uuid)

Identification completed.

voidonIdentificationError(@NonNull final VoiceRequest request, @NonNull Error error)

Called if an error occurred during identification.

voidonIdentificationStartRecording(@NonNull final VoiceRequest request)

Called when audio recording starts.

voidonIdentificationStopRecording(@NonNull final VoiceRequest request)

Called when identification is completed.

Method Detail

onIdentificationDone

public void onIdentificationDone (@NonNull final VoiceRequest request, @NonNull String uuid)

Identification completed.

Parameters:
request

An object of the VoiceRequest class.

uuid

Found uuid.

onIdentificationError

public void onIdentificationError (@NonNull final VoiceRequest request, @NonNull Error error)

Called if an error occurred during identification.

Parameters:
request

An object of the VoiceRequest class.

error

An error that occurred during identification.

onIdentificationStartRecording

public void onIdentificationStartRecording (@NonNull final VoiceRequest request)

Called when audio recording starts.

Parameters:
request

An object of the VoiceRequest class.

onIdentificationStopRecording

public void onIdentificationStopRecording (@NonNull final VoiceRequest request)

Called when identification is completed.

Parameters:
request

An object of the VoiceRequest class.