File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
examples/src/simulflow_examples Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 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"
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 ])
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
Original file line number Diff line number Diff line change 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
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 {}
You can’t perform that action at this time.
0 commit comments