Results 1 to 3 of 3

Thread: Saying typed words

  1. #1
    Member
    Join Date
    Jul 2011
    Posts
    92
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Rep Power
    4

    Default Saying typed words

    I have installed festival and want to create a script (key logger) which I can run in one virtual window while I am creating a script with vi in another.
    The idea is to simultaneously store the characters typed until a space is entered at which point the word would be said.
    The question is is there a way to capture a keystroke with script that won't interfere with what I would be editing in vi? Do you have any suggestions? I tried fiddling with stty but my key capture (without an enter) did not work.
    Last edited by timtravlr; 20th September 2011 at 02:55 PM.

  2. #2
    Is that all you got? rockdalinux's Avatar
    Join Date
    May 2005
    Location
    Planet Vegeta
    Posts
    987
    Thanks
    27
    Thanked 71 Times in 62 Posts
    Rep Power
    20

    Default

    The script command makes a typescript of everything printed on your terminal. See script(1) for more info.
    Rocky Jr.
    What's wrong? I hope I am not making you uncomfortable...

    Never send a boy to do a mans job.

  3. #3
    Member
    Join Date
    Jul 2011
    Posts
    92
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Rep Power
    4

    Default Saying typed words

    Hope U forgive me for how I wrote my query. It did mislead you, rockdalinux.
    Allow a restatement.
    I want to write a script (key logger) to run in the background or in another virtual window. When it sees a space after a word it would use festival tts to say the word. This would likely check spelling due to bad pronunciation.
    It would effectively spy on other foreground programs or other x-windows.
    My initial thought was to use the stty to read key presses but when I tried it (the function I used before) it did not see any key presses in another window.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Filter words
    By khiemves in forum Shell scripting
    Replies: 4
    Last Post: 16th April 2011, 10:16 AM
  2. Replies: 2
    Last Post: 6th December 2010, 02:49 AM
  3. [Solved] Count words in a variable
    By meta in forum Shell scripting
    Replies: 5
    Last Post: 29th March 2010, 02:13 PM
  4. searching words in two files
    By asim.mcp in forum Shell scripting
    Replies: 1
    Last Post: 7th June 2009, 05:41 PM
  5. Sed Insert Text Between Two Words
    By LinuxCommandos in forum Shell scripting
    Replies: 1
    Last Post: 6th November 2008, 06:16 PM

Posting Permissions

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