Page 1 of 1

where is César E. Lozada ?

PostPosted: Wed Oct 27, 2010 1:43 pm
by Silvio
Cesar can you send me your tts class please ?

Re: where is César E. Lozada ?

PostPosted: Thu Oct 28, 2010 3:40 am
by César E. Lozada
Silvio:

This class worked with FWH2.7+XH099.5 and I can't make it run with newer FWH/xH versions.

I'm trying to adapt it. If I success, I'll post a link for you download it.

Regards.

Re: where is César E. Lozada ?

PostPosted: Thu Oct 28, 2010 7:12 am
by Silvio
thanks
My problem is this on newest fwh not run, perhaps it can be compiled but then the exe make gpf

I need it for mine dyslexic boy at school ....

can you try to save the sound text on Mp3 file or another sound format ?

Re: where is César E. Lozada ?

PostPosted: Thu Oct 28, 2010 9:02 pm
by César E. Lozada
Silvio:
I found another way to implement voices. You need:

1) google, download and INSTALL sapi5x.exe (I installed sapi51.exe)
2) download TTS voices in desired langauges (I found a lot of them in http://www.vioio.com/voices.htm). But you can also use a paid high quality commercial voice.


Here is the code:

//Create
oVoice:=CreateObject("Sapi.SpVoice")

// Installed voices description
nTotalVoices := oVoice:GetVoices():Count() //Number of installed voices
aV:={}
FOR i:=0 TO nTotalVoices-1
o:=oVoice:GetVoices()[i]
aAdd(aV,o:GetDescription())
NEXT

//Select voice nVoice
oVoice:Voice:=oVoice:GetVoices()[nVoice] //nVoice=0..nTotalVoices-1
SysRefresh()

//Configure
oVoice:Volume:=100 //0..100
oVoice:Rate:=0 //-10..10 (Speed)

//Actions
oVoice:Speak(cText)
oVoice:Pause()
oVoice:Resume()

More information about sapi.svoice in:
http://msdn.microsoft.com/en-us/library ... 85%29.aspx

Tested working with FWH1007+xH1.216633+BCC55 in WinXP-SP3. No time for write a class (sorry).
Regards
César Lozada.

Re: where is César E. Lozada ?

PostPosted: Sat Oct 30, 2010 4:14 pm
by Silvio
thanks

I try to modify your old class

but I need also the picth command

I found this page

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=5e86ec97-40a7-453f-b0ee-6583171b4530&displaylang=en

and I saw on the chm file there are many other commands perhaps you can see if we can save it unto a wave format or mp3 format.

I 'm thinking you are only the best to see if it is possible because you Know the sapi commands good more than us
I hope you found time for help us ...

Re: where is César E. Lozada ?

PostPosted: Wed Nov 03, 2010 11:02 am
by triumvirato
Silvio,

Look at this viewtopic.php?f=6&t=12983&hilit=texto+a+voz#p68640

In the last sample there is a way to redirect the output to a wav file. Is very simple.

If anything more I can help or if something do not understand ... here I am.