FreeTTS hanging in ColdFusion 8 / Java -


I am trying to establish a text-to-speech interpreter to choose our captcha according to ADA. We are a coldfusion shop, and Ray Camden has already proved this concept last year. I am using my blog post here - - as a resource.

Everything works great there ... except for the part where fretti should work. I found the following code:

  & lt; Cfset jardir = expandPath ("freetts-1.2.2-bin / freetts-1.2 / lib") /> & Lt; Cfset jars = [] / & gt; & Lt; Cfdirectory name = "jarList" directory = "# jardir #" /> & Lt; Cfloop query = "jarlist" & gt; & Lt; Cfset ArrayAppend (jar, zardir & amp; "/" and name) / & gt; & Lt; / Cfloop & gt; & Lt; Cfset loader = createObject ("component", "javaloader.javaLoader"). Init (jar) /> & Lt; Cfset voiceManager = loader.create ("com.sun.speech.freetts.VoiceManager") /> & Lt; Cfset vm = voiceManager.getInstance () /> & Lt; Cfset voice = vm.getVoice ("Kevin 16") /> & Lt; Cfset voice.allocate () /> & Lt ;! --- & lt; Cfset voice.speak ("hi") / & gt; --- & gt; & Lt; Cfset voice.deallocate () />  

It is, it runs fine and I can CFDip the voice object after deoLocot (or even after allocating). Therefore, from this point you know that dependence is in the right place and Coldfusion is presenting everything in the right way. But as soon as I cancel the call () to call, the examination script will hang on that method.

Signs indicate some server configuration issues that are criminals here, but for my life I do not think about what it will be. (We are using Coldfusion 8.01). If someone can provide additional information about why the freight will be abused in this way, I would greatly appreciate it.

Update: This seems to be a more general Java problem. The JRU login of Cold Fusion is showing the following error as the server starts hanging:

  Exceptions in thread "thread-667" java.lang.IllegalArgumentException: A line mailing interface SourceDataLine support format PCM_SIGNED 8000.0 Hz, 16 bit, mono, 2 bytes / frame, Big Endian is supported.  

In addition, if I try to run FreeTTSHelloWorld.jar outside the box from the command line ( java -jar bin / FreeTTSHelloWorld.jar ), then Java will hang up and we have to be compelled with ^ C.

Do you have a sound card? Try typing the file on disk (in a single post from r).


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -