We have decided to use a differnt API for the captcha. Regarding the speech, 
FreeTTS is the API that we want to use. 

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


> > I am hoping someone could provide me with some help in implementing 
> this on my
> > application. I am running ColdFusion 7 on a Windows Server. I have 
> been asked to display
> > a image and audio captcha in my form. I've visited both the JCpatcha 
> and FreeTTS
> > websites.
> 
> I would recommend that you avoid implementing CAPTCHAs at all. That's
> probably not the answer you're looking for, but they're terrible
> solutions from an accessibility perspective. Instead, you might look
> at something like CFFormProtect (http://cfformprotect.riaforge.org/),
> which lets you block spammers just as effectively without the
> accessibility problems of CAPTCHAs.
> 
> Your client may have specifically requested a CAPTCHA, but ideally 
> the
> developer should recommend alternative solutions when those solutions
> are clearly superior.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> 
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more 
information! 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:317841
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to