Jump to content

Recommended Posts

Posted

$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

  • Moderators
Posted (edited)

$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.

Posted

1. Windows 2000 and above support Sapi.

2. No sound card etc

3. Check error on ObjCreate or check the registry for Sapi.

4. Refer to 1.

5. Too lazy ATM to write a script when you can have a go at it.

:)

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
  • Recently Browsing   0 members

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