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