Using patched espeak-ng

This commit is contained in:
Michael Hansen
2023-04-13 14:18:50 -05:00
parent 5b64824eea
commit cbed19e1b4
10 changed files with 50 additions and 23 deletions

View File

@@ -53,7 +53,8 @@ int main(int argc, char *argv[]) {
RunConfig runConfig;
parseArgs(argc, argv, runConfig);
auto exePath = filesystem::path(argv[0]);
// NOTE: This won't work for Windows (need GetModuleFileName)
auto exePath = filesystem::canonical("/proc/self/exe");
piper::initialize(exePath.parent_path());
piper::Voice voice;