diff --git a/demos/TTSArmLinux/src/Predictor.hpp b/demos/TTSArmLinux/src/Predictor.hpp index a1eaad990..985d01158 100644 --- a/demos/TTSArmLinux/src/Predictor.hpp +++ b/demos/TTSArmLinux/src/Predictor.hpp @@ -11,6 +11,7 @@ using namespace paddle::lite_api; class PredictorInterface { public: + virtual ~PredictorInterface() = 0; virtual bool Init( const std::string &AcousticModelPath, const std::string &VocoderPath, @@ -39,6 +40,8 @@ public: virtual bool WriteWavToFile(const std::string &wavPath) = 0; }; +PredictorInterface::~PredictorInterface() {} + // WavDataType: WAV数据类型 // 可在 int16_t 和 float 之间切换, // 用于生成 16-bit PCM 或 32-bit IEEE float 格式的 WAV