diff --git a/src/main/java/org/myrobotlab/service/config/InMoov2Config.java b/src/main/java/org/myrobotlab/service/config/InMoov2Config.java index 771fc09ce3..8052dea636 100644 --- a/src/main/java/org/myrobotlab/service/config/InMoov2Config.java +++ b/src/main/java/org/myrobotlab/service/config/InMoov2Config.java @@ -530,9 +530,6 @@ public Plan getDefault(Plan plan, String name) { log.listeners.add(new Listener("publishErrors", name)); // service --to--> InMoov2 - // mouth_audioFile.listeners.add(new Listener("publishAudioEnd", name)); - // mouth_audioFile.listeners.add(new Listener("publishAudioStart", name)); - // InMoov2 --to--> service listeners.add(new Listener("publishEvent", getPeerName("chatBot"), "getResponse")); listeners.add(new Listener("publishFlash", getPeerName("neoPixel"))); @@ -554,9 +551,6 @@ public Plan getDefault(Plan plan, String name) { listeners.add(new Listener("publishMoveTorso", getPeerName("torso"), "onMove")); // service --to--> InMoov2 - AudioFileConfig mouth_audioFile = (AudioFileConfig) plan.get(getPeerName("mouth.audioFile")); - mouth_audioFile.listeners.add(new Listener("publishPeak", name)); - htmlFilter.listeners.add(new Listener("publishText", name)); OakDConfig oakd = (OakDConfig) plan.get(getPeerName("oakd")); @@ -565,6 +559,15 @@ public Plan getDefault(Plan plan, String name) { webxr.listeners.add(new Listener("publishJointAngles", name)); + // service --to--> service + AudioFileConfig mouth_audioFile = (AudioFileConfig) plan.get(getPeerName("mouth.audioFile")); + mouth_audioFile.listeners.add(new Listener("publishPeak", name)); + mouth_audioFile.listeners.add(new Listener("publishPeak", name + ".head.jaw", "moveTo")); + mouth_audioFile.peakDelayMs = 150L; + mouth_audioFile.peakMultiplier = 200.0; + mouth_audioFile.peakSampleInterval = 2.0; + mouth_audioFile.publishPeakResetDelayMs = 100L; + // mouth_audioFile.listeners.add(new Listener("publishAudioEnd", name)); // mouth_audioFile.listeners.add(new Listener("publishAudioStart", name));