Adaptation Functions


Functions related to the Recognition Model Adaptation process. Adaptation improves the recognition model for words that are not yet well recognized.

StartAdaptation

FunctionDescriptionParametersReturns
INVOX.StartAdaptation()Starts the adaptation of words that are not included in the recognition model.—void

Starts word adaptation for words in pending state. Once this process is finished, the words will be available for dictation.

If there are no words pending to be added to the recognition model, no adaptation occurs.

INVOX.StartAdaptation();

Adaptation events

You can listen to adaptation events to track the process:

OnStartAdaptation

INVOX.OnStartAdaptation(() => {
    console.log("Adaptation started...");
});

OnFinishAdaptation

INVOX.OnFinishAdaptation(() => {
    console.log("Adaptation finished successfully.");
});

OnErrorAdaptation

INVOX.OnErrorAdaptation((error) => {
    console.error("Adaptation error:", error);
});

OnRejectAdaptation

INVOX.OnRejectAdaptation(() => {
    console.warn("Adaptation was rejected.");
});

Adaptation indicator

During adaptation, the Dictation Bar Component shows a visual indicator:

  • Loading state — The adaptation process is in progress.
  • Finished state — The adaptation process has completed successfully.

See the Dictation Bar Component for details.