where is César E. Lozada ?

where is César E. Lozada ?

Postby Silvio » Wed Oct 27, 2010 1:43 pm

Cesar can you send me your tts class please ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: where is César E. Lozada ?

Postby César E. Lozada » Thu Oct 28, 2010 3:40 am

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.
User avatar
César E. Lozada
 
Posts: 128
Joined: Wed Oct 26, 2005 12:18 pm
Location: Los Teques, Miranda, Venezuela

Re: where is César E. Lozada ?

Postby Silvio » Thu Oct 28, 2010 7:12 am

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 ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: where is César E. Lozada ?

Postby César E. Lozada » Thu Oct 28, 2010 9:02 pm

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.
User avatar
César E. Lozada
 
Posts: 128
Joined: Wed Oct 26, 2005 12:18 pm
Location: Los Teques, Miranda, Venezuela

Re: where is César E. Lozada ?

Postby Silvio » Sat Oct 30, 2010 4:14 pm

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 ...
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: where is César E. Lozada ?

Postby triumvirato » Wed Nov 03, 2010 11:02 am

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.
triumvirato
 
Posts: 199
Joined: Tue Apr 22, 2008 9:54 am
Location: Valladolid, Spain.


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: RSalazarU and 87 guests