Re: FreeTTS API implementation doesn't work in ColdFusion7

2009-01-15 Thread cf coder
Hi Isaac,

Thanks for your reply. I actually found this little helloworld freeTTS example 
online: 
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Sound;action=display;num=1204335245

I want to write a simple HelloWorld example in ColdFusion. I've got all the jar 
files I need.

cmudict04.jar
cmulex.jar
cmutimelex.jar
cmu_time_awb.jar
cmu_us_kal.jar
en_us.jar
freetts.jar
jsapi.jar 

would you be albe to show me how to do this in ColdFusion please?




 





Your help on this matter is greatly appreciated.

Regards,
John

>> > strapClassLoader").SystemClassLoader.newInstance("com.sun.speech.freetts.Voic
>> eManager")>
>> 
>> > ").init(BootstrapClassLoader)>
>> 
>
>I'm not the most knowledgeable expert with regard to Java, but this just
>looks to me like it was written by someone with Java experience, who
>didn't bother to even test anything in ColdFusion and instead simply
>assumed (wrongly) that everything in CF would work exactly the way he's
>used to things working in Java... blech... 
>
>Random guess (I haven't tried this), replace the entire 3 lines with
>this: 
>
>VMInstance = CreateObject("java","com.sun.speech.freetts.VoiceManager");
>
>Then set Application.VoiceManager6 to that. 
>
>The extra classes he created look to me like classes that are probably
>instantiated automatically by CreateObject(), so using CreateObject to
>instantiate them would be (I believe) just doubling up on those classes
>and actually slowing them down, since you would be reflecting the
>reflection. That's just a guess, but that's what it looks like to me.
>
>
>> 
>
>-- 
>s. isaac dealey  ^  new epoch
> isn't it time for a change? 
> ph: 781.769.0723
>
>http://onTap.riaforge.org/blog 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317986
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: FreeTTS API implementation doesn't work in ColdFusion7

2009-01-13 Thread Tom Chiverton
On Tuesday 13 Jan 2009, cf coder wrote:
>  "coldfusion.bootstrap.BootstrapClassLoader").SystemClassLoader.newInstance(
>"com.sun.speech.freetts.VoiceManager")>

Beware. Adobe CF can leak memory when doing ClassLoader stuff, because the 
object isn't released at the end of the request.

-- 
Tom Chiverton
Helping to synergistically enable six-generation next-generation advanced 
magnetic IPOs



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317854
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: FreeTTS API implementation doesn't work in ColdFusion7

2009-01-13 Thread s. isaac dealey
>  strapClassLoader").SystemClassLoader.newInstance("com.sun.speech.freetts.Voic
> eManager")>
> 
>  ").init(BootstrapClassLoader)>
> 

I'm not the most knowledgeable expert with regard to Java, but this just
looks to me like it was written by someone with Java experience, who
didn't bother to even test anything in ColdFusion and instead simply
assumed (wrongly) that everything in CF would work exactly the way he's
used to things working in Java... blech... 

Random guess (I haven't tried this), replace the entire 3 lines with
this: 

VMInstance = CreateObject("java","com.sun.speech.freetts.VoiceManager");

Then set Application.VoiceManager6 to that. 

The extra classes he created look to me like classes that are probably
instantiated automatically by CreateObject(), so using CreateObject to
instantiate them would be (I believe) just doubling up on those classes
and actually slowing them down, since you would be reflecting the
reflection. That's just a guess, but that's what it looks like to me.


> 

-- 
s. isaac dealey  ^  new epoch
 isn't it time for a change? 
 ph: 781.769.0723

http://onTap.riaforge.org/blog



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317848
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


FreeTTS API implementation doesn't work in ColdFusion7

2009-01-13 Thread cf coder
Hello everybody, 

I want to use the FreeTTS API to allow people with disabilies to have a better 
experience. I have been looking at this example which shows how to call it in 
ColdFusion (Please look at the second example titled: FreeTTS CFC):
http://www.cfide.org/Text_to_Speech_Example_page.cfm

Unfortuanately you can't copy it as it is an image. I've typed in the first 3 
lines of code:






I've copied the freetts.jar file which you can donwload from here 
(http://downloads.sourceforge.net/freetts/freetts-1.2.1-bin.zip?modtime=1110396608&big_mirror=0),
 to my lib folder (C:\ColdFusionMX\lib) and it is in the coldfusion class-path.

When I run the above code, I get an error:

"The selected method newInstance was not found.
Either there are no methods with the specified method name and argument types, 
or the method newInstance is overloaded with arguments types that ColdFusion 
can't decipher reliably. If this is a Java object and you verified that the 
method exists, you may need to use the javacast function to reduce ambiguity. "

Does anyone know why this is?

Regards,
John 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317842
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4