Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'd like to interact with an AIML interpreter that runs on the command line (Howie) using standard input and have the output played using espeak.

I've tried:

./runme.py | espeak --stdin

No success yet.

share|improve this question
The command posted will send the standard output from runme.py to the standard input of espeak. –  ash Jan 9 at 17:58
So, what is the problem? –  ash Jan 9 at 17:58
I'm guessing then that I have some other issue, perhaps with the Raspberry Pi I'm running this on, because I should be hearing audio, but I don't. –  Yusufk Jan 15 at 15:01

1 Answer 1

up vote 0 down vote accepted

I managed to achieve what I wanted:

echo "Welcome to the lab $(cat /var/mail/pi|grep "was granted entry" |grep -v "<p>" | sed "s/ was.*/ /"|tail -1 | awk -F ", " ' { t = $1; $1 = $2; $2 = t; print; }')" |espeak -ven-us+f4 -s150 2>/dev/null
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.