Skip to content

Commit faaa227

Browse files
committed
Small fixes
1 parent c8fac1e commit faaa227

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

examples/src/simulflow_examples/twilio_websocket.clj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,9 @@
167167

168168
;; Activity monitor connections - basically check if there is
169169
;; activity on the pipeline
170-
[[:realtime-out :out] [:activity-monitor :in]]
171-
[[:transcriptor :out] [:activity-monitor :in]]
170+
[[:realtime-out :sys-out] [:activity-monitor :sys-in]]
171+
[[:transcriptor :sys-out] [:activity-monitor :sys-in]]
172+
[[:transport-in :sys-out] [:activity-monitor :sys-in]]
172173
[[:activity-monitor :out] [:context-aggregator :in]]
173174
[[:activity-monitor :out] [:tts :in]]]
174175
extra-conns)}))

src/simulflow/processors/elevenlabs.clj

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,17 @@
181181
_ (t/log! {:level :debug :id :elevenlabs} "Connecting to TTS websocket")
182182
ws-conn @(ws/websocket url conf)]
183183
(vthread-loop []
184-
(when @alive?
185-
(when-let [msg (a/<!! ws-write)]
186-
(when @alive?
187-
(ws/send! ws-conn msg))
188-
(recur))))
184+
(when @alive?
185+
(when-let [msg (a/<!! ws-write)]
186+
(when @alive?
187+
(ws/send! ws-conn msg))
188+
(recur))))
189189
(vthread-loop []
190-
(when @alive?
191-
(a/<!! (a/timeout 3000))
192-
(t/log! {:level :debug :id :elevenlabs} "Sending keep-alive message")
193-
(ws/send! ws-conn keep-alive-message)
194-
(recur)))
190+
(when @alive?
191+
(a/<!! (a/timeout 3000))
192+
(t/log! {:level :debug :id :elevenlabs} "Sending keep-alive message")
193+
(ws/send! ws-conn keep-alive-message)
194+
(recur)))
195195
(into args
196196
{:websocket/conn ws-conn
197197
:websocket/alive? alive?

0 commit comments

Comments
 (0)