loadModel method

  1. @override
bool loadModel({
  1. required String modelPath,
  2. required String modelVocoderPath,
})
override

Implementation

@override
bool loadModel({
  required String modelPath,
  required String modelVocoderPath,
}) {
  if (_isInIsolate) {}
  {
    Outetts._modelPath = modelPath;
    Outetts._modelVocoderPath = modelVocoderPath;
  }
  if (_isInIsolate == false) {
    return true;
  }

  if (isDeviceSupport() == false || isCrash()) {
    return false;
  }

  return true;
}