Browse Source

Fix the voice_dir logic in LoadVoice(voices.c) [clang scan-build]

master
Reece H. Dunn 9 years ago
parent
commit
d4dd2cacca
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      src/libespeak-ng/voices.c

+ 5
- 5
src/libespeak-ng/voices.c View File

voice_dir = "asia"; voice_dir = "asia";
else else
voice_dir = "other"; voice_dir = "other";
}


sprintf(buf, "%s%s%c%s", path_voices, voice_dir, PATHSEP, voicename);
sprintf(buf, "%s%s%c%s", path_voices, voice_dir, PATHSEP, voicename);


if (GetFileLength(buf) <= 0) {
// if not found, look in "test" sub-directory
sprintf(buf, "%stest%c%s", path_voices, PATHSEP, voicename);
}
if (GetFileLength(buf) <= 0) {
// if not found, look in "test" sub-directory
sprintf(buf, "%stest%c%s", path_voices, PATHSEP, voicename);
} }
} }
} }

Loading…
Cancel
Save