File size: 734 Bytes
d5ee97c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
#ifndef TTSBACKEND_H
#define TTSBACKEND_H
#include <iostream>
#include <vector>
#include "MelGenerateTF.h"
#include "VocoderTF.h"
class TTSBackend
{
public:
TTSBackend(const char* melgenfile, const char* vocoderfile):
MelGen(melgenfile), Vocoder(vocoderfile)
{
std::cout << "TTSBackend Init" << std::endl;
std::cout << melgenfile << std::endl;
std::cout << vocoderfile << std::endl;
};
void inference(std::vector<int32_t> phonesIds);
MelGenData getMel() const {return _mel;}
std::vector<float> getAudio() const {return _audio;}
private:
MelGenerateTF MelGen;
VocoderTF Vocoder;
MelGenData _mel;
std::vector<float> _audio;
};
#endif // TTSBACKEND_H |