Results 1 to 3 of 3

Thread: Simple clipboard text-to-speech

  1. #1
    Join Date
    Jun 2005
    Beans
    223

    Simple clipboard text-to-speech

    Is there a program that can read what's on the clipboard (perhaps once I hit a global hotkey, or even as soon as I make the copy)?

    I tried Orca, but that reads darn near everything - I'm not looking for accessibility, just to have news articles in my browser read to me.

    I'm also aware of the KDE tools like KTTS, but I'm running Gnome.

    (As far as I've checked, festival, espeak, etc. are just backends and don't support clipboard-monitoring functionality.)

  2. #2
    Join Date
    Nov 2007
    Beans
    24

    Re: Simple clipboard text-to-speech

    Install festival and esound-clients. To do so, follow this tutorial:
    https://help.ubuntu.com/community/TextToSpeech

    Install xsel:
    Code:
    sudo apt-get install xsel
    Create new file in your home folder, call it "clipboardtospeech.sh" or something, edit it and paste the following line:
    Code:
    xsel --clipboard | festival --tts
    Save and exit. Rightclick the file, properties, rights (is it called rights? i'm on a dutch system). Make the file executable

    make a hotkey that launches the shell script:
    Code:
    /home/username/clipboardtospeech.sh
    Other more or less usefull scripts:

    Time
    Code:
    echo "It's $(date '+%-M') past $(date '+%-l')" | festival --tts
    Info about track playing in Banshee (can be adapted to rhythmbox, just hit rhythmbox --help in the terminal)
    Code:
    banshee --query-artist | festival --tts && banshee --query-album | festival --tts && banshee --query-title | festival --tts
    Last edited by .zolder; December 6th, 2008 at 10:32 PM.

  3. #3
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    10,044
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Simple clipboard text-to-speech

    echo "cool" | festival --tts
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •