termux-api: Cleanup and improve consistency
[termux-packages] / packages / termux-api / termux-tts-engines
CommitLineData
cc1ae02e 1#!/bin/sh
9043ae1c
FF
2set -e -u
3
4SCRIPTNAME=termux-tts-engines
5show_usage () {
bea93fbd
FF
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 echo ""
9 exit 0
9043ae1c
FF
10}
11
12while getopts :h option
13do
14 case "$option" in
15 h) show_usage;;
16 ?) echo "$SCRIPTNAME: illegal option -$OPTARG"; exit 1;
17 esac
18done
19shift $(($OPTIND-1))
20
21if [ $# != 0 ]; then echo "$SCRIPTNAME: too many arguments"; exit 1; fi
59f0d218 22
cc1ae02e 23@TERMUX_API@ TextToSpeech --es engine LIST_AVAILABLE