Page 1 of 2

Has anybody tried Text2Speach using FWH ?

Posted: Thu Jan 04, 2007 4:12 pm
by RAMESHBABU
Hi all
Has anybody tried Text2Speach using FWH ?
Thanks

- Ramesh Babu

Posted: Thu Jan 04, 2007 4:35 pm
by areang
Mr. Ramesh

I did for Cash Register System to say amount of payment.

Best Regard
Areang

Re: Has anybody tried Text2Speach using FWH ?

Posted: Thu Jan 04, 2007 4:41 pm
by Enrico Maria Giordano
This is a working sample:

Code: Select all

FUNCTION MAIN()

    LOCAL oSpeech := CREATEOBJECT( "Sapi.SPVoice" )

    oSpeech:Speak( "This is a test" )

    RETURN NIL
EMG

Posted: Thu Jan 04, 2007 4:49 pm
by RAMESHBABU
Mr.Enrico

Thank you very much for your reply.

I am getting the following error with the above code.
Please look in.

Code: Select all

Error description: Error TOleAuto/-1  Unknown error: TOLEAUTO:NEW
   Args:
     [   1] = C   Sapi.SPVoice
[code/]

Regards,

- Ramesh Babu P

Posted: Thu Jan 04, 2007 4:53 pm
by Gale FORd
It works ok for me with xhb and Windows XP Professional

Posted: Thu Jan 04, 2007 4:55 pm
by Enrico Maria Giordano
The sample works perfectly but you obviously have to install SAPI.

Search for spchapi.exe in the MS website.

EMG

Posted: Thu Jan 04, 2007 4:56 pm
by RAMESHBABU
Hello Mr.Gale FORd

Thank you for your reply.

I tested this in WIN98 SE after installing spchapi.exe

I think, still I am missing some thing.

Regards

- Ramesh Babu P

Posted: Thu Jan 04, 2007 5:22 pm
by RAMESHBABU
Hello Mr.Enrico

I have again tested your code in WINXP.
It is working OK in winxp.

To workwith WIN98SE, even after installing spchapi.exe
what I might be missing, can you please guide me.

And please guide me how to change to voice, speed and
other controls ?

Thanks

- Ramesh Babu P

Posted: Thu Jan 04, 2007 5:29 pm
by Enrico Maria Giordano
I don't know, sorry.

EMG

Posted: Thu Jan 04, 2007 6:35 pm
by James Bott
>And please guide me how to change to voice, speed and
other controls ?

Control Panel-Sounds, speech, and audio devices...

James

Posted: Thu Jan 04, 2007 10:51 pm
by Silvio
you must have stm.dll
the txt2speeck class work fine on xp home, xp professional sp2

Posted: Thu Jan 04, 2007 11:22 pm
by Rochinha
Ramesh

I send to you a source code in Fivewin of TTS_Test.

This uses STM.DLL, freeware and works fine on text reading.

But to use this you need install a lot of programs about speeching.

actcnc(Microsoft Speech Engine Recognition).exe
Genie(Genie Character).exe
Lernout & hauspie TTS3000 engine.exe
Merlin
MSagent(Microsoft Agent 4.16).exe
spchapi(SAPI 4.0a Runtime).exe
spchcpl(Speech Control Panel).exe
tv_enua(Your Language Component).exe

Posted: Thu Jan 04, 2007 11:51 pm
by Silvio
if you go at http://www.microsoft.com/msagent/downloads/user.asp

you can found all these files

Posted: Fri Jan 05, 2007 1:57 am
by Jeff Barnes
Is it possible to change the "voice" from within FWH ?


Thanks,
Jeff

Posted: Fri Jan 05, 2007 3:10 am
by RAMESHBABU
Hello Enrico, James, Rochina and Silvio

Thank you very much for your support.

I have executed the file "TTS_TEST.EXE" which was sent
by Mr.Rochina. It is working very well in WIN98SE and WINXP also.
(This means I have all the files which are supposed to be
present in my system to work with "STM.DLL")

But when I compile the same code with FWH 2.8 and
xHarbour 0.99.61 is generating an error
"This program has performed an illegal operation and
will be shut down" and getting terminated.

Mr.César Lozada has confirmed that the same code is working
with FWH27 + BCC55 + xH0.99.60 and xH0.99.70.

I don't know why the same code is not working particularly in
in FWH 2.8 + xHarbour 0.99.61 (Simplex). Our master Mr.Antonio
can only tell us.


- Ramesh Babu P