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.
./runme.py | espeak --stdin
No success yet.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Perhaps, you can try to write the stdout to a file with tee and then use espeak -f to have it spoken.
so, for example if my script script.sh returns something,
./script.sh | tee >> output ; espeak -f output && rm output
would first write all the contents written to stdout. However, it would start speaking only after completion. The file written will be deleted later on too.