ailiaSpeechSetConstraint method

int ailiaSpeechSetConstraint(
  1. Pointer<AILIASpeech> net,
  2. Pointer<Char> constraint,
  3. int type
)

Set constraint.

Parameters:

  • net: A network instance pointer
  • constraint: The text of constraint (UTF8)
  • type: The type of constraint (AILIA_SPEECH_CONSTRAINT_*)

Returns:

If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

Implementation

int ailiaSpeechSetConstraint(
  ffi.Pointer<AILIASpeech> net,
  ffi.Pointer<ffi.Char> constraint,
  int type,
) {
  return _ailiaSpeechSetConstraint(
    net,
    constraint,
    type,
  );
}