> Hi Sam,
> 
> Thank you for your post. I have copied the files FreeTTS.jar file to 
> my standalone ColdFusion installation folder: 
> "C:\CFusionMX7\lib\freetts.jar". I restarted ColdFusion and the jar 
> file is now showing up in the class-path which is good. I can dump the 
> methods in the FreeTTS class like this:
> <cfset freettsObj = CreateObject("java", "com.sun.speech.freetts.
> FreeTTS")/>
> <cfdump var="#freettsObj#"><cfabort>
> 
> Please follow this link to see the list of classes and packages. 
> http://freetts.sourceforge.net/javadoc/index.html
> 
> I'm getting somewhere but I don't know how to invokve the 
> textToSpeech() method of the FreeTTS class. Basically, I want to pass 
> a string to this function (the text that the captch randomly 
> generates) and to convert this text to speeach/voice. When I get an 
> error when I try to call this method in my code: 
> <cfset freettsObj.textToSpeech(randomStr) />
> 
> The system has attempted to use an undefined value, which usually 
> indicates a programming error, either in your code or some system code.
> 
> 
> Null Pointers are another name for undefined values. 
> 
> Any ideas?
> 
> 
> Hi Sam,
> 
> Thank you for your post. I have copied the files FreeTTS.jar file to 
> my standalone ColdFusion installation folder: 
> "C:\CFusionMX7\lib\freetts.jar". I restarted ColdFusion and the jar 
> file is now showing up in the class-path which is good. I can dump the 
> methods in the FreeTTS class like this:
> <cfset freettsObj = CreateObject("java", "com.sun.speech.freetts.
> FreeTTS")/>
> <cfdump var="#freettsObj#"><cfabort>
> 
> Please follow this link to see the list of classes and packages. 
> http://freetts.sourceforge.net/javadoc/index.html
> 
> I'm getting somewhere but I don't know how to invokve the 
> textToSpeech() method of the FreeTTS class. Basically, I want to pass 
> a string to this function (the text that the captch randomly 
> generates) and to convert this text to speeach/voice. When I get an 
> error when I try to call this method in my code: 
> <cfset freettsObj.textToSpeech(randomStr) />
> 
> The system has attempted to use an undefined value, which usually 
> indicates a programming error, either in your code or some system code.
> 
> 
> Null Pointers are another name for undefined values. 
> 
> Any ideas?
> 
 

While I agree with Dave that Capchas are particularly hard on the vision 
impaired (spent many years in IBM Research in this area).  they are appropriate 
and workable. 

like any additional java class, you must first instantiate the object with 
<cfobject type="Java" class="...."> 
depending on the class requirements you also have to call several methods (init 
and others) to get the object in the correct state.

sam


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:317762
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