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

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

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

#1 Post 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

User avatar
Auge_Ohr
Posts: 1414
Joined: Wed Feb 24, 2010 3:44 pm

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

#2 Post 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
greetings by OHR
Jimmy

User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

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

#3 Post by unixkd »

Thanks Jimmy

Works fine

User avatar
hz_scotty
Posts: 107
Joined: Thu Jan 28, 2010 8:20 am
Location: Wr.Neustadt / Österreich

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

#4 Post by hz_scotty »

But only German words are not well understood :naughty: - there may be changes to the function call?
best regards
Hans

User avatar
Auge_Ohr
Posts: 1414
Joined: Wed Feb 24, 2010 3:44 pm

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

#5 Post 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++
greetings by OHR
Jimmy

User avatar
hz_scotty
Posts: 107
Joined: Thu Jan 28, 2010 8:20 am
Location: Wr.Neustadt / Österreich

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

#6 Post by hz_scotty »

SAPI 5
does not exits, i hear both - german and english :think:
best regards
Hans

User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

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

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

User avatar
Auge_Ohr
Posts: 1414
Joined: Wed Feb 24, 2010 3:44 pm

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

#8 Post 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 15587 times
TIMEZONE.ZIP
(289.81 KiB) Downloaded 760 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
greetings by OHR
Jimmy

Post Reply