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?

<cfset Voice = createObject("java","com.sun.speech.freetts.Voice") />
<cfset VoiceManager = 
createObject("java","com.sun.speech.freetts.VoiceManager") />
                                                                                
         <cfset voiceInstance = Voice>
<cfset voiceName[1] = "kevin16">
<cfset VoiceMgrInstance = VoiceManager.getInstance()>
<cfset voiceInstance = VoiceMgrInstance.getVoice(voiceName)>
<cfdump var="#voiceInstance#">

Your help on this matter is greatly appreciated.

Regards,
John

>> <cfset BootstrapClassLoader = createObject("java", "coldfusion.bootstrap.Boot
>> strapClassLoader").SystemClassLoader.newInstance("com.sun.speech.freetts.Voic
>> eManager")>
>> 
>> <cfset VoiceManager = createObject("java", "coldfusion.runtime.java.JavaProxy
>> ").init(BootstrapClassLoader)>
>> <cfset Application.VoiceManagerInstance6 = VoiceManager.Instance>
>
>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

Reply via email to