summaryrefslogtreecommitdiff
path: root/package/festival/lexicons
diff options
context:
space:
mode:
authorJohn Voltz <john.voltz@gmail.com>2008-04-03 17:13:46 +0000
committerJohn Voltz <john.voltz@gmail.com>2008-04-03 17:13:46 +0000
commitda53e2e09e40ba7437c3c002e58ef8f8fe7a5ac9 (patch)
tree3bfacb96c83b7f91acbf239286ce38b2e4cdc51e /package/festival/lexicons
parentf2f4131081962cf1185daa209d424ba72a1c9c36 (diff)
add festival speech synthesis package from University of Edinburgh
Diffstat (limited to 'package/festival/lexicons')
-rw-r--r--package/festival/lexicons/Config.in23
-rw-r--r--package/festival/lexicons/festlex.mk46
2 files changed, 69 insertions, 0 deletions
diff --git a/package/festival/lexicons/Config.in b/package/festival/lexicons/Config.in
new file mode 100644
index 000000000..903bce771
--- /dev/null
+++ b/package/festival/lexicons/Config.in
@@ -0,0 +1,23 @@
+config BR2_PACKAGE_FESTLEX_CMU
+ bool "Carnegie Mellon University"
+ default n
+ help
+ Lexicon for the festival text to speech system
+
+ http://festvox.org/packed/festival/latest
+
+config BR2_PACKAGE_FESTLEX_OALD
+ bool "Oxford Advanced Learners dictionary"
+ default n
+ help
+ Lexicon for the festival text to speech system
+
+ http://festvox.org/packed/festival/latest
+
+config BR2_PACKAGE_FESTLEX_POS
+ bool "POSLEX"
+ default n
+ help
+ Lexicon for the festival text to speech system
+
+ http://festvox.org/packed/festival/latest \ No newline at end of file
diff --git a/package/festival/lexicons/festlex.mk b/package/festival/lexicons/festlex.mk
new file mode 100644
index 000000000..912803f1e
--- /dev/null
+++ b/package/festival/lexicons/festlex.mk
@@ -0,0 +1,46 @@
+#############################################################
+#
+# festival lexicons
+#
+#############################################################
+LEX1 = festlex_CMU.tar.gz
+LEX2 = festlex_OALD.tar.gz
+LEX3 = festlex_POSLEX.tar.gz
+FESTLEX_STATUS_DIR = $(BUILD_DIR)/festival_lexicons
+FESTLEX_INSTALL_DIR = $(TARGET_DIR)/usr/share
+
+$(FESTLEX_STATUS_DIR)/.downloaded:
+ mkdir -p $(FESTLEX_STATUS_DIR)
+ifeq ($(BR2_PACKAGE_FESTLEX_CMU),y)
+ $(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(LEX1)
+endif
+ifeq ($(BR2_PACKAGE_FESTLEX_OALD),y)
+ $(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(LEX2)
+endif
+ifeq ($(BR2_PACKAGE_FESTLEX_POS),y)
+ $(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(LEX3)
+endif
+ touch $@
+
+$(FESTLEX_STATUS_DIR)/.installed: $(FESTLEX_STATUS_DIR)/.downloaded
+ifeq ($(BR2_PACKAGE_FESTLEX_CMU),y)
+ tar -xvf $(DL_DIR)/$(LEX1) --directory $(FESTLEX_INSTALL_DIR)
+endif
+ifeq ($(BR2_PACKAGE_FESTLEX_OALD),y)
+ tar -xvf $(DL_DIR)/$(LEX2) --directory $(FESTLEX_INSTALL_DIR)
+endif
+ifeq ($(BR2_PACKAGE_FESTLEX_POS),y)
+ tar -xvf $(DL_DIR)/$(LEX3) --directory $(FESTLEX_INSTALL_DIR)
+endif
+ touch $@
+
+festlex: $(FESTLEX_STATUS_DIR)/.installed
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_FESTIVAL)),y)
+TARGETS+=festlex
+endif