Interface RegistrationListener

ru.yandex.speechkit

public  interface  RegistrationListener 

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

Methods

voidonRegistrationDone(@NonNull final VoiceRequest request)

Called when registration is completed.

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

Called if an error occurred during registration.

voidonRegistrationStartRecording(@NonNull final VoiceRequest request)

Called when audio recording starts.

voidonRegistrationStopRecording(@NonNull final VoiceRequest request)

Called when audio recording stops.

Method Detail

onRegistrationDone

public void onRegistrationDone (@NonNull final VoiceRequest request)

Called when registration is completed.

Parameters:
request

The request that performs registration.

onRegistrationError

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

Called if an error occurred during registration.

Parameters:
request

The request that performs registration.

error

An error that occurred during registration.

onRegistrationStartRecording

public void onRegistrationStartRecording (@NonNull final VoiceRequest request)

Called when audio recording starts.

Parameters:
request

The request that performs registration.

onRegistrationStopRecording

public void onRegistrationStopRecording (@NonNull final VoiceRequest request)

Called when audio recording stops.

Parameters:
request

The request that performs registration.