Skip to content

Commit

Permalink
fixed speakblocking
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed Mar 9, 2024
1 parent 49dc3e5 commit 727b776
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/main/java/org/myrobotlab/service/InMoov2.java
Original file line number Diff line number Diff line change
Expand Up @@ -1715,14 +1715,9 @@ public void speakBlocking(String format, Object... args) {

// FIXME - mute is not normalized
if (!mute && isPeerStarted("mouth")) {
// sendToPeer("mouth", "speakBlocking", toSpeak);
// invokePeer("mouth", "speakBlocking", toSpeak);
// HEH, CANNOT DO THIS !! ITS NOT BLOCKING - NEED BLOCKING
// BECAUSE A GAZILLION GESTURES DEPEND ON BLOCKING SPEECH !!!
// sendToPeer("mouth", "speakBlocking", toSpeak);
AbstractSpeechSynthesis mouth = (AbstractSpeechSynthesis) getPeer("mouth");
if (mouth != null) {
mouth.speak(toSpeak);
mouth.speakBlocking(toSpeak);
}
}
}
Expand Down

0 comments on commit 727b776

Please sign in to comment.