Transformations Functions


Functions to manage the Invox Dictation Transformations Repository. Transformations automatically replace spoken words with alternative text (e.g. "Electrocardiograma" → "ECG").

GetTransformationsRepository

FunctionDescriptionParametersReturns
INVOX.GetTransformationsRepository()Returns the transformations repository object.—Object
const transformations = INVOX.GetTransformationsRepository();

TransformationsGet

Returns all transformations.

INVOX.TransformationsGet()
    .then((transformations) => console.log(transformations));

TransformationsAdd

Adds a new transformation.

INVOX.TransformationsAdd({ spoken: "Electrocardiograma", written: "ECG" })
    .then(() => console.log("Transformation added successfully"));

TransformationsRemove

Removes a transformation.

INVOX.TransformationsRemove(transformationId)
    .then(() => console.log("Transformation removed successfully"));

TransformationsReplace

Replaces an existing transformation.

INVOX.TransformationsReplace(transformationId, { spoken: "Ecodoppler", written: "Eco Doppler" })
    .then(() => console.log("Transformation updated successfully"));