Comparative-Analysis-of-Speech-Synthesis-Models
/
TensorFlowTTS
/examples
/cpptflite
/src
/VoxCommon.h
| /* | |
| VoxCommon.hpp : Defines common data structures and constants to be used with TensorVox | |
| */ | |
| // #include "ext/CppFlow/include/Tensor.h" | |
| // #include <stdexcept> | |
| template<typename T> | |
| struct TFTensor { | |
| std::vector<T> Data; | |
| std::vector<int64_t> Shape; | |
| size_t TotalSize; | |
| }; | |
| namespace VoxUtil { | |
| void ExportWAV(const std::string& Filename, const std::vector<float>& Data, unsigned SampleRate); | |
| } | |