Jump to content

SAPI.SpVoice questions


Tukata
 Share

Recommended Posts

$a = "Hello world"
_TalkOBJ($a)

Func _TalkOBJ($s_text)
    Local $o_speech
    $o_speech = ObjCreate("SAPI.SpVoice")
    $o_speech.Speak ($s_text)
    $o_speech = ""
EndFunc

Being not so expert I need some info and help:

1. On which OS this code will work without any problem ?

2. In what cases this code will not work ?

3. Is there a way to check user's OS to be sure this code will work ?

4. What should I tell user to do or install in case he needs to ?

5. Can somebody write me the full script for checking user's OS and giving the needed message ?

Many thanks in advance.

Tuk

Link to comment
Share on other sites

  • Moderators

$a = "Hello world"
_TalkOBJ($a)

Func _TalkOBJ($s_text)
    Local $o_speech
    $o_speech = ObjCreate("SAPI.SpVoice")
    $o_speech.Speak ($s_text)
    $o_speech = ""
EndFunc

Being not so expert I need some info and help:

1. On which OS this code will work without any problem ?

2. In what cases this code will not work ?

3. Is there a way to check user's OS to be sure this code will work ?

4. What should I tell user to do or install in case he needs to ?

5. Can somebody write me the full script for checking user's OS and giving the needed message ?

Many thanks in advance.

Tuk

5. Sure!! :P Not!! :)

3. @OSversion

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...