|
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
|
|
#
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
# Please add additional copyright information _after_ the line containing
|
|
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
|
|
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
|
|
#
|
|
# ROCK Linux: rock-src/misc/output/tts/config.in
|
|
# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version. A copy of the GNU General Public
|
|
# License can be found at Documentation/COPYING.
|
|
#
|
|
# Many people helped and are helping developing ROCK Linux. Please
|
|
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
|
|
# file for details.
|
|
#
|
|
# --- ROCK-COPYRIGHT-NOTE-END ---
|
|
|
|
|
|
bool 'Text-to-Speech Output Plugin' ROCKCFG_OUTPUT_TTS 0
|
|
|
|
if [ "$ROCKCFG_OUTPUT_TTS" = 1 ] ; then
|
|
menu_begin OUTPUT_TTS_MENU 'Speech Output Configuration'
|
|
block_begin 1
|
|
|
|
comment ' '
|
|
comment 'Please use the Help menu, it should answer all your questions.'
|
|
comment ' '
|
|
|
|
comment '- Select Text-to-Speech System'
|
|
|
|
choice ROCKCFG_OUTPUT_TTS_SYSTEM ownscript \
|
|
ownscript 'Use existing program we can pipe text to' \
|
|
flite 'Use the Flite TTS System' \
|
|
festival 'Use the Festival TTS System' \
|
|
mbrola 'Use the MBROLA TTS System'
|
|
|
|
comment '- TTS specific settings'
|
|
|
|
if [ "$ROCKCFG_OUTPUT_TTS_SYSTEM" = ownscript ] ; then
|
|
text 'executable that accepts text on stdin' \
|
|
ROCKCFG_OUTPUT_TTS_SAYPROG "`which say || echo '/usr/bin/say'`"
|
|
fi
|
|
|
|
if [ "$ROCKCFG_OUTPUT_TTS_SYSTEM" = flite ] ; then
|
|
text 'the flite executable' \
|
|
ROCKCFG_OUTPUT_TTS_FLITE "`which flite || echo '/usr/bin/flite'`"
|
|
fi
|
|
|
|
if [ "$ROCKCFG_OUTPUT_TTS_SYSTEM" = festival ] ; then
|
|
text 'the festival executable' \
|
|
ROCKCFG_OUTPUT_TTS_FESTIVAL "`which festival || echo '/usr/bin/festival'`"
|
|
fi
|
|
|
|
if [ "$ROCKCFG_OUTPUT_TTS_SYSTEM" = mbrola ] ; then
|
|
text 'the mbrola executable' \
|
|
ROCKCFG_OUTPUT_TTS_MBROLA "`which mbrola || echo '/usr/bin/mbrola'`"
|
|
text 'the voice file to use' \
|
|
ROCKCFG_OUTPUT_TTS_VOICEFILE "$(dirname `dirname $ROCKCFG_OUTPUT_TTS_MBROLA`)/lib/mbrola/us1"
|
|
text 'txt to pho converter executable' \
|
|
ROCKCFG_OUTPUT_TTS_TXT2PHO "`which txt2pho || echo '/usr/bin/txt2pho'`"
|
|
text 'console wav player executable' \
|
|
ROCKCFG_OUTPUT_TTS_PLAY "`which play || echo '/usr/bin/play'`"
|
|
fi ;
|
|
|
|
comment ' '
|
|
comment '- What would you like to be informed about?'
|
|
block_begin 2
|
|
|
|
bool 'Generic header at section start' \
|
|
ROCKCFG_OUTPUT_TTS_ENABLE_HEADER 0
|
|
bool 'Generic status messages' \
|
|
ROCKCFG_OUTPUT_TTS_ENABLE_STATUS 0
|
|
bool 'Generic error messages' \
|
|
ROCKCFG_OUTPUT_TTS_ENABLE_ERROR 1
|
|
comment ' '
|
|
|
|
bool 'Package build refusals' \
|
|
ROCKCFG_OUTPUT_TTS_ENABLE_PKG_DENY 0
|
|
[ $ROCKCFG_OUTPUT_TTS_ENABLE_PKG_DENY -eq 1 ] &&
|
|
text 'Text to say when package is denied' \
|
|
ROCKCFG_OUTPUT_TTS_TXT_PKG_DENY \
|
|
'The package \$2 has been rejected in stage \$1 because of \$3.'
|
|
comment ' '
|
|
|
|
bool 'Package build starting messages' \
|
|
ROCKCFG_OUTPUT_TTS_ENABLE_PKG_START 1
|
|
[ $ROCKCFG_OUTPUT_TTS_ENABLE_PKG_START -eq 1 ] &&
|
|
text 'Text to say when package build starts' \
|
|
ROCKCFG_OUTPUT_TTS_TXT_PKG_START \
|
|
'The build of the package \$3 from the \$2 repository is beginning for stage \$1.'
|
|
comment ' '
|
|
|
|
bool 'Package build finished messages' \
|
|
ROCKCFG_OUTPUT_TTS_ENABLE_PKG_FINISH 1
|
|
[ $ROCKCFG_OUTPUT_TTS_ENABLE_PKG_FINISH -eq 1 ] &&
|
|
text 'Text to say when package build is finished' \
|
|
ROCKCFG_OUTPUT_TTS_TXT_PKG_FINISH \
|
|
'The build of the package \$3 from the \$2 repository has finished succesfully.'
|
|
comment ' '
|
|
|
|
bool 'Package build aborted messages' \
|
|
ROCKCFG_OUTPUT_TTS_ENABLE_PKG_ABORT 1
|
|
[ $ROCKCFG_OUTPUT_TTS_ENABLE_PKG_ABORT -eq 1 ] &&
|
|
text 'Text to say when package build has been aborted' \
|
|
ROCKCFG_OUTPUT_TTS_TXT_PKG_ABORT \
|
|
'Unfortunately, the build of package \$3 from the \$2 repository had to be aborted!'
|
|
comment ' '
|
|
|
|
bool 'Package build errorquote messages' \
|
|
ROCKCFG_OUTPUT_TTS_ENABLE_ERRORQUOTE 0
|
|
[ $ROCKCFG_OUTPUT_TTS_ENABLE_ERRORQUOTE -eq 1 ] &&
|
|
text 'Text to say when the logfile would be quoted' \
|
|
ROCKCFG_OUTPUT_TTS_TXT_ERRORQUOTE \
|
|
'An Error occured. Please have a look at the logfile!'
|
|
block_end
|
|
|
|
block_end
|
|
menu_end
|
|
fi
|