syncthingtray: 1.6.3 -> 1.6.4 (#364825)
[NixPkgs.git] / pkgs / applications / audio / espeak-ng / mbrola.patch
blob2f6c61cca4ef141d99207a9360f54417bdd77427
1 --- a/src/libespeak-ng/mbrowrap.c
2 +++ b/src/libespeak-ng/mbrowrap.c
3 @@ -205,7 +205,7 @@
4 signal(SIGTERM, SIG_IGN);
6 snprintf(charbuf, sizeof(charbuf), "%g", mbr_volume);
7 - execlp("mbrola", "mbrola", "-e", "-v", charbuf,
8 + execlp("@mbrola@/bin/mbrola", "mbrola", "-e", "-v", charbuf,
9 voice_path, "-", "-.wav", (char *)NULL);
10 /* if execution reaches this point then the exec() failed */
11 snprintf(mbr_errorbuf, sizeof(mbr_errorbuf),
12 --- a/src/libespeak-ng/synth_mbrola.c
13 +++ b/src/libespeak-ng/synth_mbrola.c
14 @@ -85,7 +85,7 @@
15 if (!load_MBR())
16 return ENS_MBROLA_NOT_FOUND;
18 - sprintf(path, "%s/mbrola/%s", path_home, mbrola_voice);
19 + sprintf(path, "@mbrola@/share/mbrola/voices/%s/%s", mbrola_voice, mbrola_voice);
20 #ifdef PLATFORM_POSIX
21 // if not found, then also look in
22 // usr/share/mbrola/xx, /usr/share/mbrola/xx/xx, /usr/share/mbrola/voices/xx