vim: Update to latest patch
[termux-packages] / packages / termux-api / termux-tts-speak
index e7118aa..9fe2b10 100755 (executable)
@@ -1,15 +1,14 @@
-#!/system/bin/sh
+#!/bin/sh
 
 set -u
 
 PARAMS=""
 
-SCRIPTNAME=$0
 show_usage () {
-       echo "usage: $SCRIPTNAME [OPTIONS]"
+       echo "usage: termux-tts-speak [OPTIONS]"
        echo ""
-       echo "Speak with a device text-to-speech (TTS) engine."
-       echo "Find out about valid options with the device-tts-engines program."
+       echo "Speak stdin input with a system text-to-speech (TTS) engine."
+       echo "Find out about available engines by executing 'termux-tts-engines'."
        echo "  -e, --engine <engine>        TTS engine to use"
        echo "  -l, --language <language>    language to speak in (may be unsupported by the engine)"
        echo "  -p, --pitch <pitch>          pitch to use in speech" 
@@ -31,4 +30,4 @@ case "$1" in
 esac
 done
 
-termux-api SpeechReceiver $PARAMS
+@TERMUX_API@ TextToSpeech $PARAMS