[RESOLVED] Why Does This Work?
Results 1 to 10 of 10

Thread: [RESOLVED] Why Does This Work?

  1. #1
    Join Date
    Jan 2000
    Location
    Pittsburgh, PA USA
    Posts
    2,053

    Resolved [RESOLVED] Why Does This Work?

    Hi Everyone!

    Don't know where exactly to put this.... but since I am using a desktop computer I put it here.

    A few days ago while browsing through www.stumbleupon.com I came upon a webpage that said it could determine if my computer was male or female.

    Being curious.... I followed the directions.

    1.Open Notepad.
    2. Enter the following code exactly as shown....

    CreateObject("SAPI.SpVoice").Speak"How Are You"

    3. Save As xyz.vbs

    4. Double click on xyz.vbs and hear a voice say, "How Are You", it could be either a male or female voice.

    To my suprise I found I had a male voice on my computer. I took this to work, and on the 3 computers in our office, I found I had 1 male and 2 females.

    We are all running XP Pro. I gave it to a friend running Windows 7 and it did not work.

    Why does it work?
    How does it work?
    Why are there two different voices, and what determines which one plays?
    Why didn't it work on my friend's Windows 7 computer?

    I thought this was fascinating !

    I cannot wait to hear the answers !
    Thanks in advance,
    Dave
    *** Help others less fortunate.

    JESUS IS LORD !

  2. #2
    Join Date
    Feb 2000
    Location
    Idaho Falls, Idaho, USA
    Posts
    18,428
    In XP, Click Start, Control Panel, double click on Speech. You will see the default voice selected.

    There is a voice in Win 7 also.

  3. #3
    Join Date
    Jul 1998
    Location
    Toronto
    Posts
    26,543
    Works on my Win7 PC. (female BTW)
    _____________________
    cat lovers click here

  4. #4
    Join Date
    Apr 2000
    Location
    Friern Barnet, London, England
    Posts
    46,565
    BTW, it does work on my Win7 rig. I suspect that your friend's computer just has scripting disabled.

    In Win 7 the voice setting is in Control Panel>Speech Recognition>Advanced Speech Options, under the "Text to Speech" tab.
    Nick.

  5. #5
    Join Date
    Jul 1998
    Location
    Toronto
    Posts
    26,543
    Clever little trick.

    And if anyone's wondering.. yes, it will repeat rude words LOL.
    _____________________
    cat lovers click here

  6. #6
    Join Date
    Jan 2000
    Location
    Pittsburgh, PA USA
    Posts
    2,053
    Hey Guys thanks for the info!
    I still don't know why or how it works though.
    What program is it using?
    Is it something built into Windows?
    Thanks,
    Dave
    *** Help others less fortunate.

    JESUS IS LORD !

  7. #7
    Join Date
    Jul 1998
    Location
    Toronto
    Posts
    26,543
    It's windows built in app for the sight disabled.
    _____________________
    cat lovers click here

  8. #8
    Join Date
    Apr 2005
    Location
    Maryland, USA
    Posts
    17,806
    Quote Originally Posted by davidgsmith View Post

    1.Open Notepad.

    2. Enter the following code exactly as shown....

    CreateObject("SAPI.SpVoice").Speak"How Are You"

    3. Save As xyz.vbs
    ".vbs" = Visual Basic Script

  9. #9
    Join Date
    Jan 2000
    Location
    Pittsburgh, PA USA
    Posts
    2,053
    Thanks for the info. Sorry it took so long to get back.
    Reading the Wikpedia article was enlightening. And I descovered that programmers speak a totally different language, besides whatever language they are programming in! Not to mention the hundreds of abbreviations they have to know.
    Thanks again!
    Dave
    *** Help others less fortunate.

    JESUS IS LORD !

  10. #10
    Join Date
    Apr 2005
    Location
    Maryland, USA
    Posts
    17,806
    Quote Originally Posted by davidgsmith View Post

    Sorry it took so long to get back.
    No problem.

    Quote Originally Posted by davidgsmith View Post

    ... I descovered that programmers speak a totally different language, besides whatever language they are programming in! Not to mention the hundreds of abbreviations they have to know.
    Right?

    Quote Originally Posted by davidgsmith View Post

    Thanks again!
    You're welcome.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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