Skip to content

armgit / piper

Public Imported from GitHub
0

A fast, local neural text to speech system

Set UTF-8 console for Windows

Michael Hansendef047af9d56
diff --git a/src/cpp/main.cpp b/src/cpp/main.cpp
index 3c6192e..962ca47 100644
--- a/src/cpp/main.cpp
+++ b/src/cpp/main.cpp
@@ -95,6 +95,11 @@ int main(int argc, char *argv[]) {
RunConfig runConfig;
parseArgs(argc, argv, runConfig);
+#ifdef _WIN32
+ // Required on Windows to show IPA symbols
+ SetConsoleOutputCP(CP_UTF8);
+#endif
+
piper::PiperConfig piperConfig;
piper::Voice voice;