Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 22 lines 883 B view raw
1--- a/src/libespeak-ng/mbrowrap.c 2+++ b/src/libespeak-ng/mbrowrap.c 3@@ -205,7 +205,7 @@ 4 signal(SIGTERM, SIG_IGN); 5 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; 17 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