Jump to content

question about using a function on spvoice object


Recommended Posts

hello autoit team

please

i tried to create a SPVoice object 

when i create the object and tried to use this function SetAlertBoundary

it gave me an error

please where is the problem?

here is the code

local $o_Sapi_OBJ = ObjCreate("SAPI.SpVoice")
if IsObj($o_Sapi_OBJ) then
$o_Sapi_OBJ.SetAlertBoundary("SPEI_PHONEME")
endIf

note i got the function name from microsoft web site

 

https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms719784(v=vs.85)

i have windows10

Edited by nacerbaaziz
Link to comment
Share on other sites

I think you are mixing COM object and COM interface.  Your link points to an interface.  I have been using this COM object in the past and the property is AlertBoundary.

Link to comment
Share on other sites

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

×
×
  • Create New...