Blame SOURCES/festival-1.96-alias_cmu_to_nitech.patch

7b3626
diff -urN festival.orig/lib/alias_cmu_to_nitech.scm festival/lib/alias_cmu_to_nitech.scm
7b3626
--- festival.orig/lib/alias_cmu_to_nitech.scm	1969-12-31 19:00:00.000000000 -0500
7b3626
+++ festival/lib/alias_cmu_to_nitech.scm	2007-03-14 23:31:43.000000000 -0400
7b3626
@@ -0,0 +1,39 @@
7b3626
+;
7b3626
+; This file is trivial and I make no claims of copyright. However, I should 
7b3626
+; certainly credit Nickolay V. Shmyrev, who sent me a snippet of code on
7b3626
+; which this is based.
7b3626
+;                     -- Matthew Miller <mattdm@mattdm.org>
7b3626
+;
7b3626
+
7b3626
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
7b3626
+;;;
7b3626
+;;; Make aliases for cmu_us_*_arctic_hts voices previously shipped with
7b3626
+;;; Fedora which are now replaced by the nitech_us_*_arctic_hts versions
7b3626
+;;; of the same voices.
7b3626
+;;;
7b3626
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
7b3626
+
7b3626
+(if (and (member 'nitech_us_awb_arctic_hts (voice.list))
7b3626
+         (not (member 'cmu_us_awb_arctic_hts (voice.list))))
7b3626
+ (define (voice_cmu_us_awb_arctic_hts)
7b3626
+    (voice_nitech_us_awb_arctic_hts)
7b3626
+    'cmu_us_awb_arctic_hts))
7b3626
+
7b3626
+(if (and (member 'nitech_us_bdl_arctic_hts (voice.list))
7b3626
+         (not (member 'cmu_us_bdl_arctic_hts (voice.list))))
7b3626
+ (define (voice_cmu_us_bdl_arctic_hts)
7b3626
+    (voice_nitech_us_bdl_arctic_hts)
7b3626
+    'cmu_us_bdl_arctic_hts))
7b3626
+
7b3626
+(if (and (member 'nitech_us_jmk_arctic_hts (voice.list))
7b3626
+         (not (member 'cmu_us_jmk_arctic_hts (voice.list))))
7b3626
+ (define (voice_cmu_us_jmk_arctic_hts)
7b3626
+    (voice_nitech_us_jmk_arctic_hts)
7b3626
+    'cmu_us_jmk_arctic_hts))
7b3626
+
7b3626
+(if (and (member 'nitech_us_slt_arctic_hts (voice.list))
7b3626
+         (not (member 'cmu_us_slt_arctic_hts (voice.list))))
7b3626
+ (define (voice_cmu_us_slt_arctic_hts)
7b3626
+    (voice_nitech_us_slt_arctic_hts)
7b3626
+    'cmu_us_slt_arctic_hts))
7b3626
+
7b3626
diff -urN festival.orig/lib/init.scm festival/lib/init.scm
7b3626
--- festival.orig/lib/init.scm	2007-03-14 23:26:07.000000000 -0400
7b3626
+++ festival/lib/init.scm	2007-03-14 23:32:44.000000000 -0400
7b3626
@@ -128,6 +128,10 @@
7b3626
 (require 'voices)  ;; sets voice_default
7b3626
 (require 'languages)
7b3626
 
7b3626
+;;; Aliases for the CMU voices previously shipped 
7b3626
+;;; with Fedora (now replaced by Nitech versions)
7b3626
+(require 'alias_cmu_to_nitech)
7b3626
+
7b3626
 ;;; Some higher level functions
7b3626
 (require 'token)
7b3626
 (require 'tts)