Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/coqui-ai-tts-ukrainian' into coq…
Browse files Browse the repository at this point in the history
…ui-ai-tts-ukrainian
  • Loading branch information
csukuangfj committed Dec 6, 2023
2 parents a4d2b3a + 2bd4333 commit 05c32d7
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -431,15 +431,12 @@ void CNonStreamingTextToSpeechDlg::Init() {
ok = false;
}

if (!Exists("./lexicon.txt") && !Exists("./espeak-ng-data/phontab")) {
error_message += "Cannot find espeak-ng-data directory or ./lexicon.txt\r\n";
ok = false;
}

if (!Exists("./tokens.txt")) {
error_message += "Cannot find ./tokens.txt\r\n";
ok = false;
}
// it is OK to leave lexicon.txt and espeak-ng-data empty
// since models using characters don't need them

if (!ok) {
generate_btn_.EnableWindow(FALSE);
Expand Down Expand Up @@ -470,7 +467,7 @@ void CNonStreamingTextToSpeechDlg::Init() {
config.model.vits.model = "./model.onnx";
if (Exists("./espeak-ng-data/phontab")) {
config.model.vits.data_dir = "./espeak-ng-data";
} else {
} else if (Exists("./lexicon.txt")) {
config.model.vits.lexicon = "./lexicon.txt";
}
config.model.vits.tokens = "./tokens.txt";
Expand Down

0 comments on commit 05c32d7

Please sign in to comment.