Jump to content

problem with text to speech


Him
 Share

Recommended Posts

I found this script in this forum but $oSp.LanguageID = DEC(0409) don't work.

The full script is:

$Text = InputBox("Text", "Type text to say", "")

$oSp = ObjCreate("SAPI.SpVoice")

$oSp.LanguageID = DEC(0409) ;hex 0409 is english...

$oSp.Speak($Text)

I get the message:

the requested action with that object has failed

but it works when:

$Text = InputBox("Text", "Type text to say", "")

$oSp = ObjCreate("SAPI.SpVoice")

$oSp.Speak($Text)

Anybody can help? I want to use $oSp.LanguageID = DEC(408) ;hex 408 is greek...

Edited by HereticSeal
Link to comment
Share on other sites

  • Moderators

Dec(0x0409)oÝ÷ Ù­º¹ìã{­«az»aj}tßwè®Ø^zx%Èejx.jºÚ"µÍÙÐÞ
    ÌÎNÉÌÎNËXÊ
JJ

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

Dec(0x0409)oÝ÷ Ù­º¹ìã{­«az»aj}tßwè®Ø^zx%Èejx.jºÚ"µÍÙÐÞ
    ÌÎNÉÌÎNËXÊ
JJ
Well, it doesn't work either.

I think that something's wrong with the command:

$oSp.LanguageID = Dec(0x0409)

Any ideas?

Link to comment
Share on other sites

What is the link to MSDN to find info about SAPI engine?

Can anyone tell me how to change the language?

It doesn't work. Try it yourself to get an idea.

Without that 'languageID' part the script runs exellent.

On the other hand, with that 'languageID' part working, it would be better...

Happy xmas...

Link to comment
Share on other sites

  • Moderators

Well, it doesn't work either.

I think that something's wrong with the command:

$oSp.LanguageID = Dec(0x0409)

Any ideas?

I didn't say it would work, I was pointing that out to Zedna, in fact, I said it was wrong.

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