Hi, I installed festival with an English package in order to have Text-To-Speech on my PC. I configured pulseaudio to work well with it and all, and now I want to have a keyboard shortcut for it. I installed xsel and managed to make festival read a selected line using the command:

xsel | festival --tts --pipe

however, when I set up a keybinding for that same command (using xbindkeys) it doesn’t seem to work. I also tried putting that command in a script and executing it with a keybinding but it didn’t help.
does anyone know what could cause my problem and direct me to a solution to that?
Thanks