|
|
23b78b |
diff -u --recursive festival-vanilla/doc/festival.texi festival/doc/festival.texi
|
|
|
23b78b |
--- festival-vanilla/doc/festival.texi 2017-09-04 11:54:08.000000000 -0400
|
|
|
23b78b |
+++ festival/doc/festival.texi 2018-09-09 10:04:50.409877809 -0400
|
|
|
23b78b |
@@ -936,14 +936,15 @@
|
|
|
23b78b |
@cindex initialization
|
|
|
23b78b |
@cindex installation initialization
|
|
|
23b78b |
@cindex @file{init.scm}
|
|
|
23b78b |
-@cindex @file{siteinit.scm}
|
|
|
23b78b |
+@cindex @file{/etc/festival.scm}
|
|
|
23b78b |
+@cindex @file{/etc/festivalvars.scm}
|
|
|
23b78b |
Once compiled Festival may be further customized for particular sites.
|
|
|
23b78b |
At start up time Festival loads the file @file{init.scm} from its
|
|
|
23b78b |
library directory. This file further loads other necessary files such
|
|
|
23b78b |
as phoneset descriptions, duration parameters, intonation parameters,
|
|
|
23b78b |
definitions of voices etc. It will also load the files
|
|
|
23b78b |
-@file{sitevars.scm} and @file{siteinit.scm} if they exist.
|
|
|
23b78b |
-@file{sitevars.scm} is loaded after the basic Scheme library functions
|
|
|
23b78b |
+@file{/etc/festivalvars.scm} and @file{/etc/festival.scm} if they exist.
|
|
|
23b78b |
+@file{/etc/festivalvars.scm} is loaded after the basic Scheme library functions
|
|
|
23b78b |
are loaded but before any of the festival related functions are
|
|
|
23b78b |
loaded. This file is intended to set various path names before
|
|
|
23b78b |
various subsystems are loaded. Typically variables such
|
|
|
23b78b |
@@ -951,17 +952,17 @@
|
|
|
23b78b |
@code{voices_dir} (pointing to voice directories) should
|
|
|
23b78b |
be reset here if necessary.
|
|
|
23b78b |
|
|
|
23b78b |
-@cindex change libdir at run-time
|
|
|
23b78b |
+@cindex change libdir or datadir at run-time
|
|
|
23b78b |
@cindex run-time configuration
|
|
|
23b78b |
@cindex @code{load-path}
|
|
|
23b78b |
The default installation will try to find its lexicons and voices
|
|
|
23b78b |
automatically based on the value of @code{load-path} (this is derived
|
|
|
23b78b |
-from @code{FESTIVAL_HOME} at compilation time or by using the @code{--libdir}
|
|
|
23b78b |
+from @code{FESTIVAL_HOME} at compilation time or by using the @code{--datadir}
|
|
|
23b78b |
at run-time). If the voices and lexicons have been unpacked into
|
|
|
23b78b |
subdirectories of the library directory (the default) then no site
|
|
|
23b78b |
specific initialization of the above pathnames will be necessary.
|
|
|
23b78b |
|
|
|
23b78b |
-The second site specific file is @file{siteinit.scm}. Typical examples
|
|
|
23b78b |
+The second site specific file is @file{/etc/festival.scm}. Typical examples
|
|
|
23b78b |
of local initialization are as follows. The default audio output method
|
|
|
23b78b |
is NCD's NAS system if that is supported as that's what we use normally
|
|
|
23b78b |
in CSTR. If it is not supported, any hardware specific mode is the
|
|
|
23b78b |
@@ -969,7 +970,7 @@
|
|
|
23b78b |
But that default is just a setting in @file{init.scm}. If for example
|
|
|
23b78b |
in your environment you may wish the default audio output method to be
|
|
|
23b78b |
8k mulaw through @file{/dev/audio} you should add the following line to
|
|
|
23b78b |
-your @file{siteinit.scm} file
|
|
|
23b78b |
+your @file{/etc/festival.scm} file
|
|
|
23b78b |
@lisp
|
|
|
23b78b |
(Parameter.set 'Audio_Method 'sunaudio)
|
|
|
23b78b |
@end lisp
|
|
|
23b78b |
@@ -990,7 +991,7 @@
|
|
|
23b78b |
for sample rate and file type. When playing waveforms, Festival, by
|
|
|
23b78b |
default, outputs as unheadered waveform in native byte order. In this
|
|
|
23b78b |
example you would set up the default audio playing mechanism in
|
|
|
23b78b |
-@file{siteinit.scm} as follows
|
|
|
23b78b |
+@file{/etc/festival.scm} as follows
|
|
|
23b78b |
@lisp
|
|
|
23b78b |
(Parameter.set 'Audio_Method 'Audio_Command)
|
|
|
23b78b |
(Parameter.set 'Audio_Command "adplay -raw -r $SR $FILE")
|
|
|
23b78b |
@@ -1036,12 +1037,12 @@
|
|
|
23b78b |
depend on many things but due to various licence (and resource)
|
|
|
23b78b |
restrictions you may only have some diphone/nphone databases available
|
|
|
23b78b |
in your installation. The function name that is the value of
|
|
|
23b78b |
-@code{voice_default} is called immediately after @file{siteinit.scm} is
|
|
|
23b78b |
+@code{voice_default} is called immediately after @file{/etc/festival.scm} is
|
|
|
23b78b |
loaded offering the opportunity for you to change it. In
|
|
|
23b78b |
the standard distribution no change should be required. If you
|
|
|
23b78b |
download all the distributed voices @code{voice_rab_diphone} is
|
|
|
23b78b |
the default voice. You may change this for a site by adding
|
|
|
23b78b |
-the following to @file{siteinit.scm} or per person by changing
|
|
|
23b78b |
+the following to @file{/etc/festival.scm} or per person by changing
|
|
|
23b78b |
your @file{.festivalrc}. For example if you wish to
|
|
|
23b78b |
change the default voice to the American one @code{voice_ked_diphone}
|
|
|
23b78b |
@lisp
|
|
|
23b78b |
@@ -1085,7 +1086,9 @@
|
|
|
23b78b |
Copyright (C) University of Edinburgh, 1996-2003. All rights reserved.
|
|
|
23b78b |
For details type `(festival_warranty)'
|
|
|
23b78b |
festival> libdir
|
|
|
23b78b |
-"/projects/festival/lib/"
|
|
|
23b78b |
+"/usr/lib/festival"
|
|
|
23b78b |
+festival> datadir
|
|
|
23b78b |
+"/usr/share/festival"
|
|
|
23b78b |
festival> ^D
|
|
|
23b78b |
@end example
|
|
|
23b78b |
This should show the pathname you set in your @file{config/config}.
|
|
|
23b78b |
@@ -1106,7 +1109,7 @@
|
|
|
23b78b |
You have selected NAS as the audio output but have no server running on
|
|
|
23b78b |
that machine or your @code{DISPLAY} or @code{AUDIOSERVER} environment
|
|
|
23b78b |
variable is not set properly for your output device. Either set these
|
|
|
23b78b |
-properly or change the audio output device in @file{lib/siteinit.scm} as
|
|
|
23b78b |
+properly or change the audio output device in @file{lib/festival.scm} as
|
|
|
23b78b |
described above.
|
|
|
23b78b |
|
|
|
23b78b |
Ensure your audio device actually works the way you think it does. On
|
|
|
23b78b |
@@ -1136,7 +1139,7 @@
|
|
|
23b78b |
@code{voice_rab_diphone} (@file{festvox_rabxxxx.tar.gz}) is the default
|
|
|
23b78b |
voice and that @code{voice_ked_diphone} and @code{voice_don_diphone}
|
|
|
23b78b |
(@file{festvox_kedxxxx.tar.gz} and @file{festvox_don.tar.gz}) are
|
|
|
23b78b |
-installed. Also local settings in your @file{festival/lib/siteinit.scm}
|
|
|
23b78b |
+installed. Also local settings in your @file{/etc/festival.scm}
|
|
|
23b78b |
may affect these tests. However, after installation it may
|
|
|
23b78b |
be worth trying
|
|
|
23b78b |
@example
|
|
|
23b78b |
Only in festival/doc: festival.texi.orig
|
|
|
23b78b |
Only in festival-vanilla/: festival
|
|
|
23b78b |
diff -u --recursive festival-vanilla/lib/init.scm festival/lib/init.scm
|
|
|
23b78b |
--- festival-vanilla/lib/init.scm 2017-09-04 11:54:08.000000000 -0400
|
|
|
23b78b |
+++ festival/lib/init.scm 2018-09-09 10:04:50.406877794 -0400
|
|
|
23b78b |
@@ -42,6 +42,10 @@
|
|
|
23b78b |
"home-directory
|
|
|
23b78b |
Place looked at for .festivalrc etc.")
|
|
|
23b78b |
|
|
|
23b78b |
+;;; system-wide startup initialization
|
|
|
23b78b |
+(if (probe_file (path-append sysconfdir "festivalvars.scm"))
|
|
|
23b78b |
+ (load (path-append sysconfdir "festivalvars.scm")))
|
|
|
23b78b |
+
|
|
|
23b78b |
;;; User startup initialization, can be used to override load-path
|
|
|
23b78b |
;;; to allow alternate basic modules to be loaded.
|
|
|
23b78b |
(if (probe_file (path-append home-directory ".siodvarsrc"))
|
|
|
23b78b |
@@ -50,11 +54,6 @@
|
|
|
23b78b |
(if (probe_file (path-append home-directory ".festivalvarsrc"))
|
|
|
23b78b |
(load (path-append home-directory ".festivalvarsrc")))
|
|
|
23b78b |
|
|
|
23b78b |
-;;; A chance to set various variables to a local setting e.g.
|
|
|
23b78b |
-;;; lexdir, voices_dir audio etc etc.
|
|
|
23b78b |
-(if (probe_file (path-append libdir "sitevars.scm"))
|
|
|
23b78b |
- (load (path-append libdir "sitevars.scm")))
|
|
|
23b78b |
-
|
|
|
23b78b |
;;; CSTR siod extensions
|
|
|
23b78b |
(require 'cstr)
|
|
|
23b78b |
|
|
|
23b78b |
@@ -135,8 +134,8 @@
|
|
|
23b78b |
;;;
|
|
|
23b78b |
;;; Local site initialization, if the file exists load it
|
|
|
23b78b |
;;;
|
|
|
23b78b |
-(if (probe_file (path-append libdir "siteinit.scm"))
|
|
|
23b78b |
- (load (path-append libdir "siteinit.scm")))
|
|
|
23b78b |
+(if (probe_file (path-append sysconfdir "festival.scm"))
|
|
|
23b78b |
+ (load (path-append sysconfdir "festival.scm")))
|
|
|
23b78b |
|
|
|
23b78b |
;;; User initialization, if a user has a personal customization
|
|
|
23b78b |
;;; file loaded it
|
|
|
23b78b |
diff -u --recursive festival-vanilla/lib/synthesis.scm festival/lib/synthesis.scm
|
|
|
23b78b |
--- festival-vanilla/lib/synthesis.scm 2017-09-04 11:54:08.000000000 -0400
|
|
|
23b78b |
+++ festival/lib/synthesis.scm 2018-09-09 10:04:50.380877660 -0400
|
|
|
23b78b |
@@ -68,7 +68,7 @@
|
|
|
23b78b |
The default list of functions to be run on all synthesized utterances
|
|
|
23b78b |
after Wave_Synth. This will normally be nil but if for some reason you
|
|
|
23b78b |
need to change the gain or rescale *all* waveforms you could set the
|
|
|
23b78b |
- function here, in your siteinit.scm.")
|
|
|
23b78b |
+ function here, in your /etc/festival.scm.")
|
|
|
23b78b |
|
|
|
23b78b |
(defvar after_synth_hooks default_after_synth_hooks
|
|
|
23b78b |
"after_synth_hooks
|
|
|
23b78b |
Only in festival/src/arch/festival: festival.cc.orig
|