erste Version
This commit is contained in:
21
picosay
Executable file
21
picosay
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
TTS=/usr/bin/pico2wave
|
||||||
|
LANG=de-DE
|
||||||
|
|
||||||
|
usage () { echo "Usage: $0 -o <filename>" 1>&2; exit 1; }
|
||||||
|
|
||||||
|
while getopts ":o:" o; do
|
||||||
|
case "${o}" in
|
||||||
|
o)
|
||||||
|
file=${OPTARG};;
|
||||||
|
*)
|
||||||
|
usage;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
echo $OPTIND
|
||||||
|
ONELESS=`expr ${OPTIND} - 1`
|
||||||
|
shift ${ONELESS}
|
||||||
|
|
||||||
|
$TTS -l ${LANG} -w ${file} "$*"
|
||||||
Reference in New Issue
Block a user