mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

124 lines
4.4 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/misc/output/tts/config.in
  9. # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. bool 'Text-to-Speech Output Plugin' ROCKCFG_OUTPUT_TTS 0
  23. if [ "$ROCKCFG_OUTPUT_TTS" = 1 ] ; then
  24. menu_begin OUTPUT_TTS_MENU 'Speech Output Configuration'
  25. block_begin 1
  26. comment ' '
  27. comment 'Please use the Help menu, it should answer all your questions.'
  28. comment ' '
  29. comment '- Select Text-to-Speech System'
  30. choice ROCKCFG_OUTPUT_TTS_SYSTEM ownscript \
  31. ownscript 'Use existing program we can pipe text to' \
  32. flite 'Use the Flite TTS System' \
  33. festival 'Use the Festival TTS System' \
  34. mbrola 'Use the MBROLA TTS System'
  35. comment '- TTS specific settings'
  36. if [ "$ROCKCFG_OUTPUT_TTS_SYSTEM" = ownscript ] ; then
  37. text 'executable that accepts text on stdin' \
  38. ROCKCFG_OUTPUT_TTS_SAYPROG "`which say || echo '/usr/bin/say'`"
  39. fi
  40. if [ "$ROCKCFG_OUTPUT_TTS_SYSTEM" = flite ] ; then
  41. text 'the flite executable' \
  42. ROCKCFG_OUTPUT_TTS_FLITE "`which flite || echo '/usr/bin/flite'`"
  43. fi
  44. if [ "$ROCKCFG_OUTPUT_TTS_SYSTEM" = festival ] ; then
  45. text 'the festival executable' \
  46. ROCKCFG_OUTPUT_TTS_FESTIVAL "`which festival || echo '/usr/bin/festival'`"
  47. fi
  48. if [ "$ROCKCFG_OUTPUT_TTS_SYSTEM" = mbrola ] ; then
  49. text 'the mbrola executable' \
  50. ROCKCFG_OUTPUT_TTS_MBROLA "`which mbrola || echo '/usr/bin/mbrola'`"
  51. text 'the voice file to use' \
  52. ROCKCFG_OUTPUT_TTS_VOICEFILE "$(dirname `dirname $ROCKCFG_OUTPUT_TTS_MBROLA`)/lib/mbrola/us1"
  53. text 'txt to pho converter executable' \
  54. ROCKCFG_OUTPUT_TTS_TXT2PHO "`which txt2pho || echo '/usr/bin/txt2pho'`"
  55. text 'console wav player executable' \
  56. ROCKCFG_OUTPUT_TTS_PLAY "`which play || echo '/usr/bin/play'`"
  57. fi ;
  58. comment ' '
  59. comment '- What would you like to be informed about?'
  60. block_begin 2
  61. bool 'Generic header at section start' \
  62. ROCKCFG_OUTPUT_TTS_ENABLE_HEADER 0
  63. bool 'Generic status messages' \
  64. ROCKCFG_OUTPUT_TTS_ENABLE_STATUS 0
  65. bool 'Generic error messages' \
  66. ROCKCFG_OUTPUT_TTS_ENABLE_ERROR 1
  67. comment ' '
  68. bool 'Package build refusals' \
  69. ROCKCFG_OUTPUT_TTS_ENABLE_PKG_DENY 0
  70. [ $ROCKCFG_OUTPUT_TTS_ENABLE_PKG_DENY -eq 1 ] &&
  71. text 'Text to say when package is denied' \
  72. ROCKCFG_OUTPUT_TTS_TXT_PKG_DENY \
  73. 'The package \$2 has been rejected in stage \$1 because of \$3.'
  74. comment ' '
  75. bool 'Package build starting messages' \
  76. ROCKCFG_OUTPUT_TTS_ENABLE_PKG_START 1
  77. [ $ROCKCFG_OUTPUT_TTS_ENABLE_PKG_START -eq 1 ] &&
  78. text 'Text to say when package build starts' \
  79. ROCKCFG_OUTPUT_TTS_TXT_PKG_START \
  80. 'The build of the package \$3 from the \$2 repository is beginning for stage \$1.'
  81. comment ' '
  82. bool 'Package build finished messages' \
  83. ROCKCFG_OUTPUT_TTS_ENABLE_PKG_FINISH 1
  84. [ $ROCKCFG_OUTPUT_TTS_ENABLE_PKG_FINISH -eq 1 ] &&
  85. text 'Text to say when package build is finished' \
  86. ROCKCFG_OUTPUT_TTS_TXT_PKG_FINISH \
  87. 'The build of the package \$3 from the \$2 repository has finished succesfully.'
  88. comment ' '
  89. bool 'Package build aborted messages' \
  90. ROCKCFG_OUTPUT_TTS_ENABLE_PKG_ABORT 1
  91. [ $ROCKCFG_OUTPUT_TTS_ENABLE_PKG_ABORT -eq 1 ] &&
  92. text 'Text to say when package build has been aborted' \
  93. ROCKCFG_OUTPUT_TTS_TXT_PKG_ABORT \
  94. 'Unfortunately, the build of package \$3 from the \$2 repository had to be aborted!'
  95. comment ' '
  96. bool 'Package build errorquote messages' \
  97. ROCKCFG_OUTPUT_TTS_ENABLE_ERRORQUOTE 0
  98. [ $ROCKCFG_OUTPUT_TTS_ENABLE_ERRORQUOTE -eq 1 ] &&
  99. text 'Text to say when the logfile would be quoted' \
  100. ROCKCFG_OUTPUT_TTS_TXT_ERRORQUOTE \
  101. 'An Error occured. Please have a look at the logfile!'
  102. block_end
  103. block_end
  104. menu_end
  105. fi