Page 1 of 1

I need a good and low prices TEXT to SPEECH activex/sdk

Posted: Thu Jun 06, 2013 4:06 am
by unixkd
I need a good and low prices TEXT to SPEECH activex/sdk that is very compatible and easy to use in Xbase++

Thanks.

Joe

Re: I need a good and low prices TEXT to SPEECH activex/sdk

Posted: Thu Jun 06, 2013 12:05 pm
by Auge_Ohr
unixkd wrote:I need a good and low prices TEXT to SPEECH activex/sdk that is very compatible and easy to use in Xbase++
why not use Windows "build-in" Speech ?

Code: Select all

#include "activex.ch"
#pragma library( "ascom10.lib" )

PROCEDURE Main(cText )
LOCAL oApp
LOCAL oObj
LOCAL aVoice
LOCAL cSample := "This is the Voice from X base ++"

   IF PCOUNT() = 0
      cText := cSample
   ENDIF

   oApp := CreateObject( "SAPI.SpVoice" )

   IF NIL == oApp
     ? "Fehler: ", ComLastError()
     ? "Beschreibung:"
     ? ComLastMessage()
     RETURN
   ENDIF

   aVoice := oApp:invoke("GetVoices",0,DISPATCH_METHOD,"Name=Microsoft mary", "Language=407")

   oApp:Speak( cText )
   SLEEP(100)
   oApp:destroy()

RETURN

Re: I need a good and low prices TEXT to SPEECH activex/sdk

Posted: Thu Jun 06, 2013 10:44 pm
by unixkd
Thanks Jimmy

Works fine

Re: I need a good and low prices TEXT to SPEECH activex/sdk

Posted: Sat Jun 08, 2013 4:47 am
by hz_scotty
But only German words are not well understood :naughty: - there may be changes to the function call?

Re: I need a good and low prices TEXT to SPEECH activex/sdk

Posted: Sat Jun 08, 2013 2:49 pm
by Auge_Ohr
hz_scotty wrote:But only German words are not well understood :naughty: - there may be changes to the function call?
you have to search for SAPI 5 "Steffi" which speak "German" ...
remember : you have to use 32bit Version with Xbase++

Re: I need a good and low prices TEXT to SPEECH activex/sdk

Posted: Sat Jun 08, 2013 4:04 pm
by hz_scotty
SAPI 5
does not exits, i hear both - german and english :think:

Re: I need a good and low prices TEXT to SPEECH activex/sdk

Posted: Tue Sep 10, 2013 5:13 am
by unixkd
Hi Jimmy

I would like to instantiate an object of Win32_LocalTime using the CreateObject(). Where can I get the interface name like "xxxxx.yyyy" ?

Thanks.

Joe.

Re: I need a good and low prices TEXT to SPEECH activex/sdk

Posted: Tue Sep 10, 2013 7:57 am
by Auge_Ohr
unixkd wrote:I would like to instantiate an object of Win32_LocalTime using the CreateObject().
hm ... that is WMI ...
i do not find Win32_LocalTime in my WMI Generator ... but i have WMI Code for Win32_TimeZone.
Real_TimeZone.JPG
Real_TimeZone.JPG (34.27 KiB) Viewed 15621 times
TIMEZONE.ZIP
(289.81 KiB) Downloaded 764 times
Source Code use a lot of ot4xb as you can see.
unixkd wrote:Where can I get the interface name like "xxxxx.yyyy" ?
@ MSDN http://msdn.microsoft.com/en-us/library ... 85%29.aspx