setConstraint

fun setConstraint(constraint: String, type: Int): Int

Sets the constraint of the recognition output.

Return

0 if successful, otherwise an error code.

Parameters

constraint

The text of the constraint (UTF-8).

type

Type of the constraint, one of the AILIA_SPEECH_CONSTRAINT_* constants.