Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
TensorSpeech
GitHub Repository: TensorSpeech/TensorFlowTTS
Path: blob/master/examples/cppwin/TensorflowTTSCppInference/MultiBandMelGAN.h
1559 views
1
#pragma once
2
3
#include "ext/CppFlow/include/Model.h"
4
#include "VoxCommon.hpp"
5
class MultiBandMelGAN
6
{
7
private:
8
Model* MelGAN;
9
10
11
public:
12
bool Initialize(const std::string& VocoderPath);
13
14
15
// Do MultiBand MelGAN inference including PQMF
16
// -> InMel: Mel spectrogram (shape [1, xx, 80])
17
// <- Returns: Tensor data [4, xx, 1]
18
TFTensor<float> DoInference(const TFTensor<float>& InMel);
19
20
MultiBandMelGAN();
21
~MultiBandMelGAN();
22
};
23
24
25