Skip to content

Commit ab1a10f

Browse files
committed
Small updates for examples
1 parent db8dc05 commit ab1a10f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

examples/src/simulflow_examples/local.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
these are the defaults. See each process for details
2929
"
3030
([] (make-local-flow {}))
31-
([{:keys [llm-context extra-procs extra-conns debug? vad-analyser
31+
([{:keys [llm-context extra-procs extra-conns debug?
3232
language chunk-duration-ms]
3333
:or {llm-context {:messages
3434
[{:role "system"
@@ -62,7 +62,7 @@
6262
(u/deep-merge
6363
{;; Capture audio from microphone and send raw-audio-input frames further in the pipeline
6464
:transport-in {:proc transport-in/microphone-transport-in
65-
:args {:vad/analyser vad-analyser}}
65+
:args {:vad/analyser :vad.analyser/silero}}
6666
;; raw-audio-input -> transcription frames
6767
:transcriptor {:proc deepgram/deepgram-processor
6868
:args {:transcription/api-key (secret [:deepgram :api-key])
@@ -142,7 +142,7 @@
142142

143143
(comment
144144

145-
(def local-ai (make-local-flow {:vad-analyser (silero/create-silero-vad)}))
145+
(def local-ai (make-local-flow))
146146

147147
(defonce flow-started? (atom false))
148148

src/simulflow/scenario_manager.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
(reset! initialized? true)
149149
(set-node s (:initial-node scenario-config)))))))
150150

151-
(defn scenario-in-process
151+
(defn scenario-in-fn
152152
"Process that acts as a input for the scenario manager into the flow. This
153153
process will direct specific frames to specific outs. Example: speak-frame
154154
will be directed to :speak-out channel (should be connected to a text to
@@ -162,6 +162,8 @@
162162
(when (= in :scenario-in)
163163
[nil (frame/send frame)])))
164164

165+
(def scenario-in-process (flow/process scenario-in-fn))
166+
165167
(comment
166168
(scenario-manager
167169
{:flow (flow/create-flow {:procs {}

0 commit comments

Comments
 (0)