Re: sapi

"valery_vi" <[email protected]>
Newsgroups gmane.comp.windows.autoit.user
Message-ID <[email protected]>
There is some SAPI's example. It works under my Windows XP:

_SpeakToWAV("Hello! I'm speaking voice",@ScriptDir&"\TEST.wav")

Func _SpeakToWAV($sText,$sFile)
    $ObjVoice=ObjCreate("Sapi.SpVoice")
    $ObjFile=ObjCreate("SAPI.SpFileStream.1")
    $objFile.Open($sFile,3)
;    $objFile.voice = $objFile.GetVoices("Name","LanguageCode")
;$objVoice.voice = $objVoice.GetVoices("Language=409").Item(0)

    $objVoice.AudioOutputStream = $objFile
    $objVoice.Speak ($sText)
EndFunc

Valery

--- In [email protected], "Littlefield, Tyler" 
<compgeek13@...> wrote:
>
> Anyone have a sapi lib?
> I looked through the forums, and found some stuff on m$'s msdn 
site, but not sure what the main object is.
> 
> [Non-text portions of this message have been removed]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.