From 05f9dfa9eb99b381c5126d7e894b044f73f20011 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Thu, 4 Jul 2013 14:29:49 +0100 Subject: [PATCH] Don't compile the 'om' voice. Running |espeak --compile=om| on some platforms results in espeak segfaulting intermittently (not reproducible under gdb). When it does, it generates "Unknown keyword: " messages with garbage after it. --- Makefile.am | 7 ------- mkdictlist | 5 ++++- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Makefile.am b/Makefile.am index 88610c98..48c97e5a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -164,7 +164,6 @@ dictionaries: \ espeak-data/ne_dict \ espeak-data/nl_dict \ espeak-data/no_dict \ - espeak-data/om_dict \ espeak-data/pa_dict \ espeak-data/pap_dict \ espeak-data/pl_dict \ @@ -443,12 +442,6 @@ dictsource/no_extra: espeak-data/no_dict: src/espeak espeak-data/phontab dictsource/no_list dictsource/no_rules dictsource/no_extra cd dictsource && ESPEAK_DATA_PATH=$(PWD) ../src/espeak --compile=no && cd .. -om: espeak-data/om_dict -dictsource/om_extra: - touch dictsource/om_extra -espeak-data/om_dict: src/espeak espeak-data/phontab dictsource/om_list dictsource/om_rules dictsource/om_extra - cd dictsource && ESPEAK_DATA_PATH=$(PWD) ../src/espeak --compile=om && cd .. - pa: espeak-data/pa_dict dictsource/pa_extra: touch dictsource/pa_extra diff --git a/mkdictlist b/mkdictlist index e08443e4..cd47c8c6 100755 --- a/mkdictlist +++ b/mkdictlist @@ -16,6 +16,9 @@ special_voices = { 'zh-yue': 'zhy', } +# The 'om' voice file intimitently crashes when compiling on some platforms. +exclude_voices = ['om'] + def find_voices(path): for filename in os.listdir(path): voice_path = os.path.join(path, filename) @@ -25,7 +28,7 @@ def find_voices(path): else: if filename in special_voices.keys(): voices.add(special_voices[filename]) - else: + elif filename not in exclude_voices: voices.add(filename) find_voices('espeak-data/voices')