Class Earcons.BaseBuilder

ru.yandex.speechkit

protected  abstract class  Earcons.BaseBuilder 

Methods

TsetCancelEarcon(@NonNull SoundBuffer cancelEarcon)

Sets the sound that is played when recognition is canceled (cancel ()).

TsetFinishEarcon(@NonNull SoundBuffer finishEarcon)

Sets the sound that is played when recognition is completed.

TsetStartEarcon(@NonNull SoundBuffer startEarcon)

Sets the sound that is played when recognition starts (onRecordingBegin(Recognizer)).

Method Detail

setCancelEarcon

public T setCancelEarcon (@NonNull SoundBuffer cancelEarcon)

Sets the sound that is played when recognition is canceled (cancel ()).

Parameters:
cancelEarcon

User buffer with playback data. Default value: the sounds/cancel.ogg sound from the library components.

Throws:

Exception

An exception is thrown if an audio in the OPUS format cannot be decoded.

setFinishEarcon

public T setFinishEarcon (@NonNull SoundBuffer finishEarcon)

Sets the sound that is played when recognition is completed.

Parameters:
finishEarcon

User buffer with playback data. Default value: the sounds/finish.ogg sound from the library components.

Throws:

Exception

An exception is thrown if an audio in the OPUS format cannot be decoded.

setStartEarcon

public T setStartEarcon (@NonNull SoundBuffer startEarcon)

Sets the sound that is played when recognition starts (onRecordingBegin(Recognizer)).

Parameters:
startEarcon

User buffer with playback data. Default value: the sounds/start.ogg sound from the library components.

Throws:

Exception

An exception is thrown if an audio in the OPUS format cannot be decoded.