Blame SOURCES/festival-1.96-nitech-american.patch

dd2b13
diff -ur festival.orig/lib/email-mode.scm festival/lib/email-mode.scm
dd2b13
--- festival.orig/lib/email-mode.scm	2001-04-04 07:55:20.000000000 -0400
dd2b13
+++ festival/lib/email-mode.scm	2007-03-13 12:14:01.000000000 -0400
dd2b13
@@ -40,7 +40,7 @@
dd2b13
 (define (email_init_func)
dd2b13
  "(email_init_func)
dd2b13
 Called on starting email text mode."
dd2b13
- (voice_rab_diphone)
dd2b13
+ (voice_nitech_us_slt_arctic_hts)
dd2b13
  (set! email_previous_t2w_func token_to_words)
dd2b13
  (set! english_token_to_words email_token_to_words)
dd2b13
  (set! token_to_words english_token_to_words)
dd2b13
@@ -67,13 +67,13 @@
dd2b13
    ((and (string-matches name ">")
dd2b13
          (string-matches (item.feat token "whitespace") 
dd2b13
 			 "[ \t\n]*\n *"))
dd2b13
-    (voice_don_diphone)
dd2b13
+    (voice_nitech_us_bdl_arctic_hts)
dd2b13
     nil ;; return nothing to say
dd2b13
    )
dd2b13
    (t  ;; for all other cases
dd2b13
      (if (string-matches (item.feat token "whitespace") 
dd2b13
 			 ".*\n[ \n]*")
dd2b13
-	 (voice_rab_diphone))
dd2b13
+	 (voice_nitech_us_slt_arctic_hts))
dd2b13
      (email_previous_t2w_func token name))))
dd2b13
 
dd2b13
 (set! tts_text_modes
dd2b13
diff -ur festival.orig/lib/festival.scm festival/lib/festival.scm
dd2b13
--- festival.orig/lib/festival.scm	2005-10-21 08:34:01.000000000 -0400
dd2b13
+++ festival/lib/festival.scm	2007-03-13 12:15:13.000000000 -0400
dd2b13
@@ -507,8 +507,11 @@
dd2b13
                       double quotes
dd2b13
   (tts FILENAME nil)  Say contexts of file, FILENAME should be 
dd2b13
                       surrounded by double quotes
dd2b13
-  (voice_rab_diphone) Select voice (Britsh Male)
dd2b13
   (voice_ked_diphone) Select voice (American Male)
dd2b13
+  (voice_nitech_us_bdl_arctic_hts)
dd2b13
+                      Select voice (American Male)
dd2b13
+  (voice_nitech_us_slt_arctic_hts)
dd2b13
+                      Select voice (American Female)
dd2b13
 ")
dd2b13
 
dd2b13
 (define (festival_warranty)
dd2b13
diff -ur festival.orig/lib/languages.scm festival/lib/languages.scm
dd2b13
--- festival.orig/lib/languages.scm	2002-04-19 17:47:23.000000000 -0400
dd2b13
+++ festival/lib/languages.scm	2007-03-13 12:17:15.000000000 -0400
dd2b13
@@ -58,11 +58,12 @@
dd2b13
 
dd2b13
 (define (language_american_english)
dd2b13
 "(language_american_english)
dd2b13
-Set up language parameters for Aemerican English."
dd2b13
+Set up language parameters for American English."
dd2b13
 
dd2b13
-  (if (symbol-bound? 'voice_kal_diphone)
dd2b13
-      (set! female1 voice_kal_diphone))
dd2b13
-  (set! male1 voice_ked_diphone)
dd2b13
+  (if (symbol-bound? 'voice_nitech_us_slt_arctic_hts)
dd2b13
+      (set! female1 voice_nitech_us_slt_arctic_hts))
dd2b13
+  (if (symbol-bound? 'voice_nitech_us_bdl_arctic_hts)
dd2b13
+      (set! male1 voice_nitech_us_bdl_arctic_hts))
dd2b13
 
dd2b13
   (male1)
dd2b13
   (Parameter.set 'Language 'americanenglish)
dd2b13
@@ -98,11 +99,12 @@
dd2b13
 
dd2b13
 (define (select_language language)
dd2b13
   (cond
dd2b13
-   ((or (equal? language 'britishenglish)
dd2b13
-	(equal? language 'english))  ;; we all know its the *real* English
dd2b13
+   ((or (equal? language 'americanenglish)
dd2b13
+	(equal? language 'english))  ;; it may not be the *real* English
dd2b13
+    (language_american_english))     ;; but at least it's supported without
dd2b13
+                                     ;; non-free add-ons.
dd2b13
+   ((equal? language 'britishenglish)
dd2b13
     (language_british_english))
dd2b13
-   ((equal? language 'americanenglish)
dd2b13
-    (language_american_english))
dd2b13
    ((equal? language 'scotsgaelic)
dd2b13
     (language_scots_gaelic))
dd2b13
    ((equal? language 'welsh)
dd2b13
@@ -113,8 +115,8 @@
dd2b13
     (language_klingon))
dd2b13
    (t
dd2b13
     (print "Unsupported language, using English")
dd2b13
-    (language_british_english))))
dd2b13
+    (language_american_english))))
dd2b13
 
dd2b13
-(defvar language_default language_british_english)
dd2b13
+(defvar language_default language_american_english)
dd2b13
 
dd2b13
 (provide 'languages)
dd2b13
diff -ur festival.orig/lib/sable-mode.scm festival/lib/sable-mode.scm
dd2b13
--- festival.orig/lib/sable-mode.scm	2006-07-07 17:24:55.000000000 -0400
dd2b13
+++ festival/lib/sable-mode.scm	2007-03-13 12:25:04.000000000 -0400
dd2b13
@@ -222,35 +222,38 @@
dd2b13
    (xxml_synth UTT)
dd2b13
    (set! sable_speaker_stack (cons sable_current_speaker sable_speaker_stack))
dd2b13
    (cond
dd2b13
-    ((not equal? sable_current_language 'britishenglish)
dd2b13
+    ((not equal? sable_current_language 'americanenglish)
dd2b13
      (print "SABLE: choosen unknown voice, current voice unchanged"))
dd2b13
     ((equal? (car (xxml_attval "NAME" ATTLIST)) 'male1)
dd2b13
-     (set! sable_current_speaker 'voice_kal_diphone)
dd2b13
-     (voice_kal_diphone))
dd2b13
+     (set! sable_current_speaker 'voice_nitech_us_bdl_arctic_hts)
dd2b13
+     (voice_nitech_us_bdl_arctic_hts))
dd2b13
     ((equal? (car (xxml_attval "NAME" ATTLIST)) 'male2)
dd2b13
-     (set! sable_current_speaker 'voice_don_diphone)
dd2b13
-     (voice_don_diphone))
dd2b13
+     (set! sable_current_speaker 'voice_nitech_us_rms_arctic_hts)
dd2b13
+     (voice_nitech_us_rms_arctic_hts))
dd2b13
     ((equal? (car (xxml_attval "NAME" ATTLIST)) 'male3)
dd2b13
-     (set! sable_current_speaker 'voice_ked_diphone)
dd2b13
-     (voice_ked_diphone))
dd2b13
+     (set! sable_current_speaker 'voice_nitech_us_awb_arctic_hts)
dd2b13
+     (voice_nitech_us_awb_arctic_hts))
dd2b13
     ((equal? (car (xxml_attval "NAME" ATTLIST)) 'male4)
dd2b13
-     (set! sable_current_speaker 'voice_rab_diphone)
dd2b13
-     (voice_rab_diphone))
dd2b13
+     (set! sable_current_speaker 'voice_nitech_us_jmk_arctic_hts)
dd2b13
+     (voice_nitech_us_jmk_arctic_hts))
dd2b13
     ((equal? (car (xxml_attval "NAME" ATTLIST)) 'male5)
dd2b13
-     (set! sable_current_speaker 'voice_cmu_us_jmk_arctic_hts)
dd2b13
-     (voice_cmu_us_jmk_arctic_hts))
dd2b13
+     (set! sable_current_speaker 'voice_kal_diphone)
dd2b13
+     (voice_kal_diphone))
dd2b13
     ((equal? (car (xxml_attval "NAME" ATTLIST)) 'male6)
dd2b13
-     (set! sable_current_speaker 'voice_cmu_us_bdl_arctic_hts)
dd2b13
-     (voice_cmu_us_bdl_arctic_hts))
dd2b13
+     (set! sable_current_speaker 'voice_ked_diphone)
dd2b13
+     (voice_ked_diphone))
dd2b13
     ((equal? (car (xxml_attval "NAME" ATTLIST)) 'male7)
dd2b13
-     (set! sable_current_speaker 'voice_cmu_us_awb_arctic_hts)
dd2b13
-     (voice_cmu_us_awb_arctic_hts))
dd2b13
+     (set! sable_current_speaker 'voice_kal_diphone)
dd2b13
+     (voice_kal_diphone))
dd2b13
     ((equal? (car (xxml_attval "NAME" ATTLIST)) 'male8)
dd2b13
-     (set! sable_current_speaker 'voice_rab_diphone)
dd2b13
+     (set! sable_current_speaker 'voice_ked_diphone)
dd2b13
      (voice_ked_diphone))
dd2b13
     ((equal? (car (xxml_attval "NAME" ATTLIST)) 'female1)
dd2b13
-     (set! sable_current_speaker 'voice_cmu_us_slt_arctic_hts)
dd2b13
-     (voice_us1_mbrola))
dd2b13
+     (set! sable_current_speaker 'voice_nitech_us_slt_arctic_hts)
dd2b13
+     (voice_nitech_us_slt_arctic_hts))
dd2b13
+    ((equal? (car (xxml_attval "NAME" ATTLIST)) 'female2)
dd2b13
+     (set! sable_current_speaker 'voice_nitech_us_clb_arctic_hts)
dd2b13
+     (voice_nitech_us_clb_arctic_hts))
dd2b13
    (t
dd2b13
       (set! sable_current_speaker (intern (string-append "voice_" (car (xxml_attval "NAME" ATTLIST)))))
dd2b13
       (eval (list sable_current_speaker))))
dd2b13
@@ -467,7 +470,7 @@
dd2b13
   "(sable_init_func)
dd2b13
 Initialisation for SABLE mode"
dd2b13
   (sable_init_globals)
dd2b13
-  (voice_kal_diphone)
dd2b13
+  (voice_nitech_us_slt_arctic_hts)
dd2b13
   (set! sable_previous_elements xxml_elements)
dd2b13
   (set! xxml_elements sable_elements)
dd2b13
   (set! sable_previous_token_to_words english_token_to_words)
dd2b13
diff -ur festival.orig/lib/soleml-mode.scm festival/lib/soleml-mode.scm
dd2b13
--- festival.orig/lib/soleml-mode.scm	2001-04-04 07:55:20.000000000 -0400
dd2b13
+++ festival/lib/soleml-mode.scm	2007-03-13 12:25:48.000000000 -0400
dd2b13
@@ -51,7 +51,7 @@
dd2b13
 (define (voice_soleml)
dd2b13
 "(soleml_voice)
dd2b13
 Speaker specific initialisation for SOLE museum data."
dd2b13
-  (voice_rab_diphone)
dd2b13
+  (voice_nitech_us_slt_arctic_hts)
dd2b13
   ;; Utterances only come at end of file
dd2b13
   (set! eou_tree '((0)))
dd2b13
 )
dd2b13
diff -ur festival.orig/lib/voices.scm festival/lib/voices.scm
dd2b13
--- festival.orig/lib/voices.scm	2005-05-02 10:20:37.000000000 -0400
dd2b13
+++ festival/lib/voices.scm	2007-03-13 12:31:07.000000000 -0400
dd2b13
@@ -322,25 +322,19 @@
dd2b13
 A variable whose value is a function name that is called on start up to
dd2b13
 the default voice. [see Site initialization]")
dd2b13
 
dd2b13
+; This list has been reordered for Fedora, since we want to have the option
dd2b13
+; to only install a smallish voice by default. And the slt voice is nice. 
dd2b13
 (defvar default-voice-priority-list 
dd2b13
-  '(kal_diphone
dd2b13
-    cmu_us_bdl_arctic_hts
dd2b13
-    cmu_us_jmk_arctic_hts
dd2b13
-    cmu_us_slt_arctic_hts
dd2b13
-    cmu_us_awb_arctic_hts
dd2b13
-;    cstr_rpx_nina_multisyn       ; restricted license (lexicon)
dd2b13
-;    cstr_rpx_jon_multisyn       ; restricted license (lexicon)
dd2b13
-;    cstr_edi_awb_arctic_multisyn ; restricted license (lexicon)
dd2b13
-;    cstr_us_awb_arctic_multisyn
dd2b13
+  '(nitech_us_slt_arctic_hts
dd2b13
+    nitech_us_awb_arctic_hts
dd2b13
+    nitech_us_bdl_arctic_hts
dd2b13
+    nitech_us_clb_arctic_hts
dd2b13
+    nitech_us_jmk_arctic_hts
dd2b13
+    nitech_us_rms_arctic_hts
dd2b13
+    kal_diphone
dd2b13
     ked_diphone
dd2b13
-    don_diphone
dd2b13
-    rab_diphone
dd2b13
-    en1_mbrola
dd2b13
-    us1_mbrola
dd2b13
-    us2_mbrola
dd2b13
-    us3_mbrola
dd2b13
-    gsw_diphone  ;; not publically distributed
dd2b13
-    el_diphone
dd2b13
+    cstr_us_awb_arctic_multisyn
dd2b13
+    cstr_us_jmk_arctic_multisyn
dd2b13
     )
dd2b13
   "default-voice-priority-list
dd2b13
    List of voice names. The first of them available becomes the default voice.")