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

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