go4mohit 0 Newbie Poster

i have a bash script which takes a string as command line argument and synthesises it using festival.I need to invoke this script every time a user presses a keyboard key(or a particular combination of keys) with the selected text..

can someone tell me how this can be done..