Skip to content

Commit e70ebe3

Browse files
committed
Ported C++ executable from old repository
1 parent ab2e9b6 commit e70ebe3

4 files changed

Lines changed: 471 additions & 0 deletions

File tree

libpiper/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,16 @@ target_link_libraries(piper
147147
onnxruntime
148148
)
149149

150+
# ---- piper exe ---
151+
152+
add_executable(piper_exe src/main.cpp
153+
src/wavfile.cpp
154+
include/wavfile.hpp
155+
)
156+
target_link_libraries(piper_exe
157+
piper
158+
)
159+
150160
# ---- install ---
151161

152162
include(GNUInstallDirs)

libpiper/include/wavfile.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#ifndef WAVFILE_H_
2+
#define WAVFILE_H_
3+
4+
#include "piper.h"
5+
#include <fstream>
6+
7+
void textToWavFile(piper_synthesizer *piper, piper_synthesize_options options, const char *string, std::ostream &file);
8+
9+
#endif // WAVFILE_H_

0 commit comments

Comments
 (0)