Commit | Line | Data |
---|---|---|
cc1ae02e | 1 | #!/bin/sh |
9043ae1c FF |
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." | |
8 | echo "" | |
9 | echo "The name of an engine may be given to the termux-tts-speak command using the -e option." | |
10 | exit 0 | |
11 | } | |
12 | ||
13 | while getopts :h option | |
14 | do | |
15 | case "$option" in | |
16 | h) show_usage;; | |
17 | ?) echo "$SCRIPTNAME: illegal option -$OPTARG"; exit 1; | |
18 | esac | |
19 | done | |
20 | shift $(($OPTIND-1)) | |
21 | ||
22 | if [ $# != 0 ]; then echo "$SCRIPTNAME: too many arguments"; exit 1; fi | |
59f0d218 | 23 | |
cc1ae02e | 24 | @TERMUX_API@ TextToSpeech --es engine LIST_AVAILABLE |