nixos/wyoming/{faster-whisper,piper}: drop download directory (#376447)
[NixPkgs.git] / pkgs / by-name / sp / speechd / fix-mbrola-paths.patch
blobea16bea9bac595cf37020b952c9217dbcfe97890
1 diff --git a/src/modules/espeak.c b/src/modules/espeak.c
2 index 94a01197..9bb34475 100644
3 --- a/src/modules/espeak.c
4 +++ b/src/modules/espeak.c
5 @@ -898,13 +898,13 @@ static SPDVoice **espeak_list_synthesis_voices()
6 path = g_strdup_printf("%s/mbrola/%s", espeak_data, voicename);
7 if (access(path, O_RDONLY) != 0) {
8 g_free(path);
9 - path = g_strdup_printf("/usr/share/mbrola/%s", voicename);
10 + path = g_strdup_printf("@mbrola@/share/mbrola/%s", voicename);
11 if (access(path, O_RDONLY) != 0) {
12 g_free(path);
13 - path = g_strdup_printf("/usr/share/mbrola/%s/%s", voicename, voicename);
14 + path = g_strdup_printf("@mbrola@/share/mbrola/%s/%s", voicename, voicename);
15 if (access(path, O_RDONLY) != 0) {
16 g_free(path);
17 - path = g_strdup_printf("/usr/share/mbrola/voices/%s", voicename);
18 + path = g_strdup_printf("@mbrola@/share/mbrola/voices/%s", voicename);
19 if (access(path, O_RDONLY) != 0) {
20 g_free(path);
21 espeak_mbrola[j] = NULL;