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:

<cfset BootstrapClassLoader = createObject("java", 
"coldfusion.bootstrap.BootstrapClassLoader").SystemClassLoader.newInstance("com.sun.speech.freetts.VoiceManager")>

<cfset VoiceManager = createObject("java", 
"coldfusion.runtime.java.JavaProxy").init(BootstrapClassLoader)>
<cfset Application.VoiceManagerInstance6 = VoiceManager.Instance>

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

Reply via email to