I want ubuntu to read aloud something I put on clipboard. I found a solution for that, which is this:
xsel --clipboard | festival --tts
When I try it on terminal, this code works. But when I try to put this command to a shortcut instead, it doesn't work. Nevertheles, if I change the command in shortcuts with 'gedit' for example, it opens gedit. So, the shortcut is also working. What can be the problem over here?