[RavenclawDev 223] [12] Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty: changed some colors, user's spoken text should get printed as well
svetlana@edam.speech.cs.cmu.edu
svetlana at edam.speech.cs.cmu.edu
Fri Feb 9 14:56:52 EST 2007
An HTML attachment was scrubbed...
URL: http://mailman.srv.cs.cmu.edu/pipermail/ravenclaw-developers/attachments/20070209/cda600b4/attachment-0001.html
-------------- next part --------------
Modified: Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/DecoderInterpreter.java
===================================================================
--- Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/DecoderInterpreter.java 2007-01-29 23:03:37 UTC (rev 11)
+++ Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/DecoderInterpreter.java 2007-02-09 19:56:51 UTC (rev 12)
@@ -52,7 +52,7 @@
}
}
String decoded = new String(b1, 0, i);
- jconsole.print(decoded, java.awt.Color.RED);
+ jconsole.print("USER: " + decoded, java.awt.Color.BLACK);
pad.say(decoded);
}
} catch (IOException e) {
@@ -61,12 +61,12 @@
}
public void print_bot(String bot, String text) {
- jconsole.print(bot + ": " + text, java.awt.Color.GREEN);
+ jconsole.print(bot + ": " + text, java.awt.Color.RED);
jconsole.println();
}
public void print_human(String source, String confidence, String utterance) {
- jconsole.print("U(" + source + ":" + confidence + "): " + utterance, java.awt.Color.RED);
+ jconsole.print("U(" + source + ":" + confidence + "): " + utterance, java.awt.Color.GREEN);
jconsole.println();
}
}
Modified: Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/DrawingPad.java
===================================================================
--- Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/DrawingPad.java 2007-01-29 23:03:37 UTC (rev 11)
+++ Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/DrawingPad.java 2007-02-09 19:56:51 UTC (rev 12)
@@ -57,16 +57,16 @@
//add console to topContainer
consolePrint.setPreferredSize(new Dimension(1000, 300));
- consolePrint.getViewport().getView().setBackground(Color.black);
- consolePrint.getViewport().getView().setForeground(Color.white);
- consolePrint.setFont(new Font("Arial", Font.PLAIN, 14));
+ consolePrint.getViewport().getView().setBackground(Color.white);
+ consolePrint.getViewport().getView().setForeground(Color.black);
+ consolePrint.setFont(new Font("Arial", Font.BOLD, 14));
lowerContainer.add(consolePrint, BorderLayout.NORTH);
//add console to lowerContainer
consoleWrite.setPreferredSize(new Dimension(1000, 350));
- consoleWrite.getViewport().getView().setBackground(Color.black);
- consoleWrite.getViewport().getView().setForeground(Color.white);
- consoleWrite.setFont(new Font("Arial", Font.PLAIN, 14));
+ consoleWrite.getViewport().getView().setBackground(Color.white);
+ consoleWrite.getViewport().getView().setForeground(Color.black);
+ consoleWrite.setFont(new Font("Arial", Font.BOLD, 14));
lowerContainer.add(consoleWrite, BorderLayout.SOUTH);
interpreter = new DecoderInterpreter(consolePrint, consoleWrite, this);
Modified: Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/JavaTTYServer.java
===================================================================
--- Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/JavaTTYServer.java 2007-01-29 23:03:37 UTC (rev 11)
+++ Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/JavaTTYServer.java 2007-02-09 19:56:51 UTC (rev 12)
@@ -120,9 +120,9 @@
//lets only listen to one parse per utt
//this may be the wrong bot's parse, but they're normally almost identical
//later this should act like a real grounding backchannel
- int i = Integer.parseInt((String)f.getFrame(":parse").getProperty(":uttid"));
+ /*int i = Integer.parseInt((String)f.getFrame(":parse").getProperty(":uttid"));
if(i <= lastUttID) return (GFrame) null;
- lastUttID = i;
+ lastUttID = i;*/
GFrame features = f.getFrame(":input_features");
if(features != null) {
More information about the Ravenclaw-developers
mailing list