Skip to content

Commit

Permalink
Update thread-unsafe operations to thread-safe ones on automatic turn…
Browse files Browse the repository at this point in the history
…-taking
  • Loading branch information
sagatake committed Sep 27, 2024
1 parent 5c45414 commit f261426
Show file tree
Hide file tree
Showing 15 changed files with 714 additions and 1,628 deletions.
16 changes: 16 additions & 0 deletions application/Modular/nbproject/build-impl.xml~
Original file line number Diff line number Diff line change
Expand Up @@ -1120,6 +1120,14 @@ is divided into following sections:
<param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
<param name="transfer.not.archive.disabled" value="true"/>
</antcall>
<antcall target="-maybe-call-dep">
<param name="call.built.properties" value="${built-jar.properties}"/>
<param location="${project.Incrementality}" name="call.subproject"/>
<param location="${project.Incrementality}/build.xml" name="call.script"/>
<param name="call.target" value="jar"/>
<param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
<param name="transfer.not.archive.disabled" value="true"/>
</antcall>
<antcall target="-maybe-call-dep">
<param name="call.built.properties" value="${built-jar.properties}"/>
<param location="${project.Intentions}" name="call.subproject"/>
Expand Down Expand Up @@ -2029,6 +2037,14 @@ is divided into following sections:
<param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
<param name="transfer.not.archive.disabled" value="true"/>
</antcall>
<antcall target="-maybe-call-dep">
<param name="call.built.properties" value="${built-clean.properties}"/>
<param location="${project.Incrementality}" name="call.subproject"/>
<param location="${project.Incrementality}/build.xml" name="call.script"/>
<param name="call.target" value="clean"/>
<param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
<param name="transfer.not.archive.disabled" value="true"/>
</antcall>
<antcall target="-maybe-call-dep">
<param name="call.built.properties" value="${built-clean.properties}"/>
<param location="${project.Intentions}" name="call.subproject"/>
Expand Down
4 changes: 2 additions & 2 deletions application/Modular/nbproject/genfiles.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=ae3cedaa
nbproject/build-impl.xml.script.CRC32=6caf6f03
nbproject/build-impl.xml.data.CRC32=243167ff
nbproject/build-impl.xml.script.CRC32=65331d43
nbproject/build-impl.xml.stylesheet.CRC32=[email protected]
6 changes: 3 additions & 3 deletions application/Modular/nbproject/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ project.CereProc=../../auxiliary/TTS/CereProc
project.ChatGPT=../../auxiliary/ChatGPT
project.ConversationalGaze=../../auxiliary/ConversationalGaze
project.CorrectionMesh=../../tools/CorrectionMesh
project.DeepASR=../../../../greta-github/greta/auxiliary/DeepASR
project.DeepASR=../../auxiliary/DeepASR
project.Editors=../../tools/Editors
project.EmotionML=../../auxiliary/EmotionML
project.EnvironmentManager=../../auxiliary/EnvironmentManager
Expand All @@ -250,7 +250,7 @@ project.ListenerIntentPlanner=../../core/ListenerIntentPlanner
project.LLM=../../auxiliary/LLM
project.MaryTTS=../../auxiliary/TTS/MaryTTS
project.MeaningMiner=../../auxiliary/MeaningMiner
project.Microphone=../../../../greta-github/greta/auxiliary/Microphone
project.Microphone=../../auxiliary/Microphone
project.MPEG4=../../core/MPEG4
project.MultiLayerAttitudePlanner=../../auxiliary/MultiLayerAttitudePlanner
project.OgrePlayer=../../auxiliary/OgrePlayer
Expand All @@ -266,7 +266,7 @@ project.SpeechRecognizer=../../auxiliary/SpeechRecognizer
project.SSI=../../auxiliary/SSI
project.SubjectPlanner=../../core/SubjectPlanner
project.Thrift=../../auxiliary/Thrift
project.TurnManagement=../../../../greta-github/greta/auxiliary/TurnManagement
project.TurnManagement=../../auxiliary/TurnManagement
project.Util=../../core/Util
project.Utilx=../../core/Utilx
project.VideoCapture=../../tools/VideoCapture
Expand Down
21 changes: 11 additions & 10 deletions auxiliary/DeepASR/src/greta/auxiliary/deepasr/DeepASRFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ public class DeepASRFrame extends javax.swing.JFrame implements FeedbackPerforme

protected Server server;
protected Socket soc;
protected String answ;
// protected String answ;
protected ArrayList<LLMFrame> llms = new ArrayList<LLMFrame>();

protected volatile Boolean IsListenning = Boolean.FALSE;

private String DeepASR_python_env_checker_path = "Common\\Data\\DeepASR\\DeepGram\\check_env.py";
Expand All @@ -79,14 +80,14 @@ public class DeepASRFrame extends javax.swing.JFrame implements FeedbackPerforme

protected CharacterManager cm;
private static String markup = "fml-apml";

public String getAnswer() {
return answ;
}

public void setAnswer(String answer) {
this.answ = answer;
}
// public String getAnswer() {
// return answ;
// }
//
// public void setAnswer(String answer) {
// this.answ = answer;
// }

public void performFeedback(String type){
//TO IMPLEMENT on subclass
Expand Down Expand Up @@ -132,7 +133,7 @@ public boolean areDetailsOnGestures(){

public DeepASRFrame(CharacterManager cm) {

server = new Server();
// server = new Server();
this.cm=cm;

}
Expand Down
Loading

0 comments on commit f261426

Please sign in to comment.