| 1 | #!/bin/sh |
| 2 | set -e -u |
| 3 | |
| 4 | SCRIPTNAME=termux-tts-engines |
| 5 | show_usage () { |
| 6 | echo "Usage: $SCRIPTNAME" |
| 7 | echo "Get information about the available text-to-speech (TTS) engines. The name of an engine may be given to the termux-tts-speak command using the -e option." |
| 8 | exit 0 |
| 9 | } |
| 10 | |
| 11 | while getopts :h option |
| 12 | do |
| 13 | case "$option" in |
| 14 | h) show_usage;; |
| 15 | ?) echo "$SCRIPTNAME: illegal option -$OPTARG"; exit 1; |
| 16 | esac |
| 17 | done |
| 18 | shift $(($OPTIND-1)) |
| 19 | |
| 20 | if [ $# != 0 ]; then echo "$SCRIPTNAME: too many arguments"; exit 1; fi |
| 21 | |
| 22 | @TERMUX_API@ TextToSpeech --es engine LIST_AVAILABLE |