MCPcopy Create free account

hub / github.com/algal/sparky / functions

Functions744 in github.com/algal/sparky

↓ 1 callersMethod_poll_signals
Apply queued commands and pending offset updates.
sparky_mvp/robot/moves.py:388
↓ 1 callersMethod_process_frame
(self, mic_frame: bytes)
sparky_mvp/core/webrtc_apm.py:193
↓ 1 callersMethod_process_frame
Process a single frame through the NLMS filter.
sparky_mvp/core/echo_canceller.py:156
↓ 1 callersMethod_process_frame
(self, mic_frame: bytes)
sparky_mvp/core/webrtc_aecm.py:217
↓ 1 callersMethod_process_request
Process transcribed text through middleware pipeline. The pipeline now includes the provider middleware which calls Anthropic Claude
sparky_mvp/core/state_machine.py:1144
↓ 1 callersMethod_process_vad
Run VAD on audio chunk. Args: chunk: Audio chunk (int16) Returns: True if voice activity detected,
sparky_mvp/core/vad_capture.py:378
↓ 1 callersMethod_publish_shared_state
Expose idle-related state for external threads.
sparky_mvp/robot/moves.py:483
↓ 1 callersMethod_record_frequency_snapshot
Store a thread-safe snapshot of current frequency statistics.
sparky_mvp/robot/moves.py:688
↓ 1 callersFunction_repo_root
()
wake_training/scripts/train_custom_wakeword.py:17
↓ 1 callersFunction_resample_linear
Lightweight linear resampler for short buffers.
sparky_mvp/robot/speech_tapper.py:104
↓ 1 callersFunction_rms_dbfs
Root-mean-square in dBFS for float32 mono array in [-1,1].
sparky_mvp/robot/speech_tapper.py:58
↓ 1 callersMethod_schedule_next_tick
Compute sleep time to maintain target frequency and update potential freq.
sparky_mvp/robot/moves.py:681
↓ 1 callersMethod_setup_audio_stream
Set up PyAudio stream for microphone input. Returns: PyAudio stream object
sparky_mvp/core/state_machine.py:198
↓ 1 callersFunction_sign_connect_payload
Build the device auth block for the connect handshake. Returns the ``device`` dict to include in ConnectParams.
sparky_mvp/core/openclaw_node_client.py:88
↓ 1 callersFunction_sliding_windows
(x: np.ndarray, win: int)
wake_training/scripts/eval_fp_curve.py:9
↓ 1 callersFunction_slugify
(text: str)
wake_training/scripts/train_custom_wakeword.py:21
↓ 1 callersMethod_synthesize_kokoro
(self, text: str)
sparky_mvp/core/middlewares/direct_tts.py:335
↓ 1 callersMethod_synthesize_openai
(self, text: str)
sparky_mvp/core/middlewares/direct_tts.py:304
↓ 1 callersMethod_synthesize_orpheus
(self, text: str)
sparky_mvp/core/middlewares/direct_tts.py:373
↓ 1 callersMethod_synthesize_riva
(self, text: str)
sparky_mvp/core/middlewares/direct_tts.py:408
↓ 1 callersMethod_synthesize_wav
(self, text: str)
sparky_mvp/core/middlewares/testbench_tts.py:210
↓ 1 callersMethod_testbench_play
(self, filename: str)
sparky_mvp/core/middlewares/testbench_tts.py:246
↓ 1 callersFunction_to_float32_mono
Convert arbitrary PCM array to float32 mono in [-1,1]. Accepts shapes: (N,), (1,N), (N,1), (C,N), (N,C).
sparky_mvp/robot/speech_tapper.py:76
↓ 1 callersMethod_transcribe_parakeet
(self, audio_wav: bytes)
sparky_mvp/core/stt_engine.py:227
↓ 1 callersMethod_transcribe_whisper
(self, audio_wav: bytes)
sparky_mvp/core/stt_engine.py:197
↓ 1 callersMethod_update_face_tracking
Get face tracking offsets from camera worker thread. Behavior depends on head_tracking_mode: - "continuous": always read fresh offset
sparky_mvp/robot/moves.py:729
↓ 1 callersMethod_update_frequency_stats
Update frequency statistics based on the current loop start time.
sparky_mvp/robot/moves.py:667
↓ 1 callersMethod_update_primary_motion
Advance queue state and idle behaviours for this tick.
sparky_mvp/robot/moves.py:607
↓ 1 callersFunction_wav_to_pcm_16k_mono_int16
Decode WAV and resample to target rate mono int16 PCM (best-effort).
sparky_mvp/core/webrtc_apm.py:42
↓ 1 callersFunction_wav_to_pcm_16k_mono_int16
Decode WAV and resample to 16kHz mono int16 PCM (best-effort).
sparky_mvp/core/webrtc_aecm.py:52
↓ 1 callersMethod_worker_loop
(self)
sparky_mvp/core/middlewares/direct_tts.py:212
↓ 1 callersMethod_worker_loop
(self)
sparky_mvp/core/middlewares/testbench_tts.py:149
↓ 1 callersMethod_write_recording
(self, wav_bytes: bytes)
sparky_mvp/core/middlewares/direct_tts.py:454
↓ 1 callersMethod_write_recording
(self, wav_bytes: bytes)
sparky_mvp/core/middlewares/testbench_tts.py:238
↓ 1 callersFunction_write_yaml
(path: Path, config: dict)
wake_training/scripts/train_custom_wakeword.py:96
↓ 1 callersFunctionbench_kokoro
Benchmark Kokoro TTS (requires espeak-ng).
tools/tts_latency_bench.py:21
↓ 1 callersFunctionbench_openai
Benchmark OpenAI TTS (requires OPENAI_API_KEY).
tools/tts_latency_bench.py:120
↓ 1 callersFunctionbench_orpheus
Benchmark Orpheus TTS (requires GPU + vLLM).
tools/tts_latency_bench.py:63
↓ 1 callersMethodchat_abort
Abort an in-flight chat run. Best-effort. Returns True if the abort request was acknowledged.
sparky_mvp/core/openclaw_gateway_client.py:689
↓ 1 callersFunctioncheck_environment
Check required environment variables and dependencies. Raises: SystemExit: If critical requirements are missing
main.py:139
↓ 1 callersMethodcleanup
Clean up resources before shutdown.
sparky_mvp/core/state_machine.py:1387
↓ 1 callersMethodclear
Clear speaker buffer and reset filter (on playback cancel).
sparky_mvp/core/echo_canceller.py:202
↓ 1 callersMethodclose
Close the WebSocket connection.
sparky_mvp/core/openclaw_gateway_client.py:184
↓ 1 callersMethodclose
(self)
sparky_mvp/core/webrtc_aecm.py:167
↓ 1 callersFunctioncombine_full_body
Combine primary and secondary full body poses. Args: primary_pose: (head_pose, antennas, body_yaw) - primary move secondary_pose:
sparky_mvp/robot/moves.py:137
↓ 1 callersFunctionenroll_from_wav
Extract a speaker embedding from a WAV file for enrollment. Args: wav_path: Path to WAV file (any format — will be converted to 16kHz mon
sparky_mvp/core/speaker_id.py:153
↓ 1 callersMethodevaluate
(self, t: float)
sparky_mvp/robot/gentle_actions.py:38
↓ 1 callersMethodevaluate
(self, t: float)
sparky_mvp/robot/gentle_actions.py:61
↓ 1 callersMethodevaluate
(self, t: float)
sparky_mvp/robot/gentle_actions.py:93
↓ 1 callersMethodevaluate
(self, t: float)
sparky_mvp/robot/gentle_actions.py:114
↓ 1 callersMethodfeed
Thread-safe: push base64-encoded audio into the consumer queue.
sparky_mvp/robot/head_wobbler.py:50
↓ 1 callersMethodfeed_speaker_pcm
(self, pcm_int16: bytes)
sparky_mvp/core/webrtc_aecm.py:193
↓ 1 callersMethodfeed_speaker_wav
(self, wav_bytes: bytes)
sparky_mvp/core/webrtc_apm.py:162
↓ 1 callersMethodfeed_wav
Thread-safe: extract PCM from WAV bytes and push into consumer queue.
sparky_mvp/robot/head_wobbler.py:64
↓ 1 callersMethodfinish
Create a finish chunk.
sparky_mvp/core/streaming.py:161
↓ 1 callersMethodflush_input_buffer
Read and discard stale audio from the PyAudio input buffer. During TTS playback the VAD sleeps and doesn't read from the mic, so PyAu
sparky_mvp/core/vad_capture.py:483
↓ 1 callersFunctionget_date
Get the current date.
sparky_mvp/tools/tool_handlers.py:33
↓ 1 callersFunctionget_time
Get the current time.
sparky_mvp/tools/tool_handlers.py:27
↓ 1 callersMethodinteractive_phase
Wait for VAD to detect speech (via queue). VAD runs continuously in background, this phase just waits for speech to appear i
sparky_mvp/core/state_machine.py:978
↓ 1 callersFunctionmain
Main entry point. Loads configuration, checks environment, and starts the state machine.
main.py:203
↓ 1 callersFunctionmain
()
tools/head_wobbler_smoke_test.py:36
↓ 1 callersFunctionmain
()
tools/gateway_chat.py:72
↓ 1 callersFunctionmain
()
tools/orient_on_speech_smoke_test.py:177
↓ 1 callersFunctionmain
()
tools/thinking_smoke_test.py:17
↓ 1 callersFunctionmain
()
tools/face_tracking_smoke_test.py:159
↓ 1 callersFunctionmain
()
tools/baseline_listen_transcribe.py:77
↓ 1 callersFunctionmain
()
tools/kokoro_smoke_test.py:10
↓ 1 callersFunctionmain
()
tools/movement_smoke_test.py:20
↓ 1 callersFunctionmain
()
tools/parakeet_smoke_test.py:27
↓ 1 callersFunctionmain
()
tools/enroll_speakers.py:21
↓ 1 callersFunctionmain
()
tools/fetch_models.py:110
↓ 1 callersFunctionmain
()
tools/gateway_dump.py:19
↓ 1 callersFunctionmain
()
tools/tts_latency_bench.py:157
↓ 1 callersFunctionmain
()
openclaw_configs/workspace/skills/solveit-tools/bin/solveit_tools.py:125
↓ 1 callersFunctionmain
()
wake_training/scripts/eval_fp_curve.py:19
↓ 1 callersFunctionmain
()
wake_training/scripts/train_custom_wakeword.py:139
↓ 1 callersFunctionparse_url
Extract (domain, dialog_name) from a SolveIt dialog URL.
openclaw_configs/workspace/skills/solveit-tools/bin/solveit_tools.py:21
↓ 1 callersFunctionprecheck_camera_and_scrfd
Verify camera returns frames and SCRFD can detect a face. Returns True if a face was detected, False otherwise. Aborts the test early if the
tools/orient_on_speech_smoke_test.py:47
↓ 1 callersFunctionprint_banner
Print startup banner.
main.py:171
↓ 1 callersFunctionprint_instructions
Print usage instructions.
main.py:188
↓ 1 callersMethodprocess_audio_input
Process captured audio through STT pipeline. Flow: 1. Transcribe audio using local STT 2. Check for speech vs noise
sparky_mvp/core/audio_input_processor.py:70
↓ 1 callersMethodprocessing_phase
Process user request through Anthropic Claude + middleware pipeline. VAD continues listening in background. If speech detected, inte
sparky_mvp/core/state_machine.py:1046
↓ 1 callersFunctionprovider_smoke_test
()
tools/provider_smoke_test.py:35
↓ 1 callersMethodraise_for_status
()
tests/test_direct_tts.py:126
↓ 1 callersMethodreset
Reset the cancellation flag for reuse.
sparky_mvp/core/middlewares/tts.py:554
↓ 1 callersMethodreset
Reset accumulators while keeping the last potential frequency.
sparky_mvp/robot/moves.py:218
↓ 1 callersMethodreset
Reset the internal state.
sparky_mvp/robot/head_wobbler.py:177
↓ 1 callersMethodrun
Main loop: sleep, check presence, speak.
sparky_mvp/core/spontaneous_speech.py:112
↓ 1 callersFunctionrun_loop
()
tools/baseline_listen_transcribe.py:167
↓ 1 callersFunctionset_camera_worker
Register the CameraWorker instance for scene awareness tools.
sparky_mvp/tools/tool_handlers.py:19
↓ 1 callersFunctionsmoke_test
()
tools/gateway_smoke_test.py:38
↓ 1 callersFunctionsmoke_test
(use_robot: bool = False)
tools/node_camera_smoke_test.py:77
↓ 1 callersMethodspeaking_until_monotonic
(cls)
sparky_mvp/core/middlewares/testbench_tts.py:142
↓ 1 callersMethodstart
Start the head wobbler loop in a thread.
sparky_mvp/robot/head_wobbler.py:76
↓ 1 callersMethodstart_antenna_wiggle
Start continuous antenna wiggle animation (singleton). Waits for any in-progress reset to complete before starting. Saves cu
sparky_mvp/robot/animations.py:138
↓ 1 callersMethodstartup
Initialize all components and prepare for operation. Transitions to INTERACTIVE state after completion (for debugging).
sparky_mvp/core/state_machine.py:561
↓ 1 callersMethodstop
Signal the manager to stop.
sparky_mvp/core/spontaneous_speech.py:169
↓ 1 callersMethodstop
Stop the head wobbler loop.
sparky_mvp/robot/head_wobbler.py:83
↓ 1 callersFunctiontest_scene_capture
Test scene capture utility (requires robot camera).
tools/face_tracking_smoke_test.py:125
↓ 1 callersFunctiontest_scrfd_standalone
Test SCRFD face detection on a synthetic image.
tools/face_tracking_smoke_test.py:25
← previousnext →201–300 of 744, ranked by callers