We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › Audio issue in Windows Vista
Page Index Toggle Pages: 1
Audio issue in Windows Vista (Read 1709 times)
Audio issue in Windows Vista
Jul 28th, 2009, 3:08pm
 
Hi!

I am using the voce speech recognition library on a project, and I am getting a very strange behaviour: the code runs smoothly when I run it from inside the console, but once I do Export Application, it does not seem to hear anything.

This happens even with the code example in their page (lightly adapted to Processing):

Code:
import voce.*;


PFont fonte;

void setup() {
size(800,600);
fonte = loadFont("Calibri-48.vlw");
voce.SpeechInterface.init("C:/Users/User/Desktop/processing-1.0.5/libraries/voce/library", false, true,
"", "digits");
 background(255);
 
}


void draw() {
 textFont(fonte,30);
 fill(0);
  try
{
Thread.sleep(200);
}
catch (InterruptedException e)
{
}

while (voce.SpeechInterface.getRecognizerQueueSize() > 0)
{
String s = voce.SpeechInterface.popRecognizedString();

                                 background(255);
                               text(s, width/2 - textWidth(s), height/2);


}

}




I don't know if this should be filed under bugs or if I might be doing something wrong. Anyone has an idea what might be going on?
Re: Audio issue in Windows Vista
Reply #1 - Jul 28th, 2009, 4:04pm
 
Ah, nevermind, figured it out. The init() function inside Processing was looking for a file in the folder that contains Processing.exe, whereas once exported it looks into Application.Windows/
Re: Audio issue in Windows Vista
Reply #2 - Sep 29th, 2009, 6:47am
 
Hi ktai,
I'm trying to get Voce up and running on my MacBook Pro (Intel) but seem to be getting an error with part of the Java library:

Quote:
Exception in thread "Animation Thread" java.lang.NoClassDefFoundError: edu/cmu/sphinx/util/props/PropertyException
     at voce.SpeechInterface.init(SpeechInterface.java:79)
     at Voce.setup(Voce.java:29)
     at processing.core.PApplet.handleDraw(PApplet.java:1383)
     at processing.core.PApplet.run(PApplet.java:1311)
     at java.lang.Thread.run(Thread.java:613)


It seems to be finding the library ok (I changed the path in your code to my own). I was wondering if you'd experienced anything similar? Or how you installed it?
If anyone else has any ideas what it could be I'm all ears!
Re: Audio issue in Windows Vista
Reply #3 - Jan 23rd, 2010, 10:08pm
 
i had the same problem as well on my mbp

Exception in thread "Recognition thread" java.lang.IllegalStateException: Expected state Ready actual state Allocating
     at edu.cmu.sphinx.recognizer.Recognizer.checkState(Recognizer.java:147)
     at edu.cmu.sphinx.recognizer.Recognizer.recognize(Recognizer.java:113)
     at edu.cmu.sphinx.recognizer.Recognizer.recognize(Recognizer.java:135)
     at voce.SpeechRecognizer.run(SpeechRecognizer.java:129)
     at java.lang.Thread.run(Thread.java:613)
Exception in thread "Animation Thread" java.lang.NullPointerException
     at voce.SpeechRecognizer.getQueueSize(SpeechRecognizer.java:152)
     at voce.SpeechInterface.getRecognizerQueueSize(SpeechInterface.java:149)
     at voceTest.draw(voceTest.java:48)
     at processing.core.PApplet.handleDraw(PApplet.java:1425)
     at processing.core.PApplet.run(PApplet.java:1327)
     at java.lang.Thread.run(Thread.java:613)

If you found a way to make it work, i would be interested in it. thanks
Page Index Toggle Pages: 1