You might be interested in the Xdialog --tailbox option which can read a file as it is modified.H4LF82 wrote:and i agree that txt files are clunky. it was my suggestion, and i suggested it because it gives me a physical place to put the stdout without having to use a console where i can physically SEE it the moment it gets created. by all means, remove the text file and use the stdout ...someone with a console who trusts their eyes, please!
Cheers!
an adaption of my code could enable that:
Code: Select all
touch /tmp/speech_out
pocketsphinx_continuous $SOMERANDOMOPTIONS |while read ROW DATA; do
case "$ROW" in
[0-9]*:)echo $DATA;;
esac
done >> /tmp/speech_out &
Xdialog --tailbox /tmp/speech_out 0 0 &