Skip to content

Commit 7e941ed

Browse files
authored
Merge pull request #23 from wendelscardua/termux-speech-to-text
termux-speech-to-text script
2 parents 1e27ad6 + 67c72ba commit 7e941ed

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

scripts/termux-speech-to-text

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/data/data/com.termux/files/usr/bin/sh
2+
set -e -u
3+
4+
SCRIPTNAME=termux-speech-to-text
5+
show_usage () {
6+
echo "Usage: $SCRIPTNAME"
7+
echo "Converts speech to text, sending partial matches to stdout."
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+
/data/data/com.termux/files/usr/libexec/termux-api SpeechToText

0 commit comments

Comments
 (0)