Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
TensorSpeech
GitHub Repository: TensorSpeech/TensorFlowTTS
Path: blob/master/examples/cpptflite/src/VocoderTF.h
1559 views
1
#ifndef VOCODERTF_H
2
#define VOCODERTF_H
3
4
#include "TfliteBase.h"
5
6
class VocoderTF : public TfliteBase
7
{
8
public:
9
10
VocoderTF(const char* modelFilename):TfliteBase(modelFilename),
11
inputIndex(interpreter->inputs()[0]),
12
outputIndex(interpreter->outputs()[0]) {};
13
14
std::vector<float> infer(const MelGenData mel);
15
16
private:
17
18
const int32_t inputIndex;
19
const int32_t outputIndex;
20
};
21
22
#endif // VOCODERTF_H
23