summaryrefslogtreecommitdiff
path: root/install/default-conf/etc/festival.scm
diff options
context:
space:
mode:
Diffstat (limited to 'install/default-conf/etc/festival.scm')
-rw-r--r--install/default-conf/etc/festival.scm17
1 files changed, 17 insertions, 0 deletions
diff --git a/install/default-conf/etc/festival.scm b/install/default-conf/etc/festival.scm
new file mode 100644
index 00000000..d39be33e
--- /dev/null
+++ b/install/default-conf/etc/festival.scm
@@ -0,0 +1,17 @@
+;; Any site-wide Festival initialization can be added to this file.
+;; It is marked as a configuration file, so your changes will be saved
+;; across upgrades of the Festival package.
+;;
+
+
+; Server access list (hosts)
+(set! server_access_list '("[^.]+" "127.0.0.1" "localhost.*"))
+
+;; Command for Asterisk begin
+(define (tts_textasterisk string mode)
+ "(tts_textasterisk STRING MODE)
+ Apply tts to STRING. This function is specifically designed for
+ use in server mode so a single function call may synthesize the string.
+ This function name may be added to the server safe functions."
+ (utt.send.wave.client (utt.wave.resample (utt.wave.rescale (utt.synth (eval (list 'Utterance 'Text string))) 5) 8000)))
+