Re: Re: sapi

"Littlefield, Tyler" <[email protected]>
Newsgroups gmane.comp.windows.autoit.user
Message-ID <001301c7bdfb$2a141a70$6c01a8c0@tdsportable>
got it.
Just needed really to know if spvoice was it's own object, or had to be dclared under another entity.
Thanks,
  ----- Original Message ----- 
  From: valery_vi 
  To: [email protected] 
  Sent: Tuesday, July 03, 2007 11:15 PM
  Subject: [AutoIt] Re: sapi


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



   

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