Fix synthesis speaker id bug

This commit is contained in:
Michael Hansen
2023-01-10 14:01:47 -06:00
parent dfa03d80e6
commit a34b2d4f3b
3 changed files with 7 additions and 5 deletions

View File

@@ -188,7 +188,7 @@ void parseArgs(int argc, char *argv[], RunConfig &runConfig) {
runConfig.outputPath = filesystem::path(argv[++i]);
} else if (arg == "-s" || arg == "--speaker") {
ensureArg(argc, argv, i);
runConfig.speakerId = (larynx::SpeakerId)stoll(argv[++i]);
runConfig.speakerId = (larynx::SpeakerId)stoi(argv[++i]);
} else if (arg == "-h" || arg == "--help") {
printUsage(argv);
exit(0);