File size: 494 Bytes
d5ee97c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef VOCODERTF_H
#define VOCODERTF_H

#include "TfliteBase.h"

class VocoderTF : public TfliteBase
{
public:

    VocoderTF(const char* modelFilename):TfliteBase(modelFilename),
                                         inputIndex(interpreter->inputs()[0]),
                                         outputIndex(interpreter->outputs()[0]) {};

    std::vector<float> infer(const MelGenData mel);

private:

    const int32_t inputIndex;
    const int32_t outputIndex;
};

#endif // VOCODERTF_H