vishred18's picture
Upload 364 files
d5ee97c
raw
history blame contribute delete
No virus
698 Bytes
#ifndef MELGENERATETF_H
#define MELGENERATETF_H
#include "TfliteBase.h"
class MelGenerateTF : public TfliteBase
{
public:
MelGenerateTF(const char* modelFilename):TfliteBase(modelFilename),
inputIndexs(interpreter->inputs()),
ouptIndex(interpreter->outputs()[1]) {};
MelGenData infer(const std::vector<int32_t> inputIds);
private:
std::vector<int32_t> _speakerId{0};
std::vector<float> _speedRatio{1.0};
std::vector<float> _f0Ratio{1.0};
std::vector<float> _enegyRatio{1.0};
const std::vector<int32_t> inputIndexs;
const int32_t ouptIndex;
};
#endif // MELGENERATETF_H