MCPcopy Create free account

hub / github.com/algal/sparky / functions

Functions744 in github.com/algal/sparky

↓ 1 callersFunctiontest_with_robot
Test face tracking with real robot camera.
tools/face_tracking_smoke_test.py:63
↓ 1 callersMethodto_message
Convert to conversation message format. Returns: Message dict with role and content
sparky_mvp/core/audio_input_processor.py:34
↓ 1 callersMethodtool_animation
Animation based on tool type. Tool animations disabled - will be re-enabled later.
sparky_mvp/robot/animations.py:99
↓ 1 callersMethodtool_notification
Create a tool notification chunk (for animations).
sparky_mvp/core/streaming.py:141
MethodApmHandle
sparky_mvp/core/apm_shim.cpp:25
Method__call__
Process audio sample and return VAD confidence. Args: audio_sample: Audio with shape (batch_size, num_samples)
sparky_mvp/core/vad_capture.py:70
Method__del__
(self)
sparky_mvp/core/webrtc_apm.py:152
Method__del__
(self)
sparky_mvp/core/webrtc_aecm.py:176
Method__del__
Clean up ONNX session.
sparky_mvp/core/vad_capture.py:127
Method__init__
(self, original_stderr)
main.py:42
Method__init__
(self, frames: list[str])
tests/test_openclaw_node_client.py:58
Method__init__
(self, return_frame: bool = True)
tests/test_openclaw_node_client.py:85
Method__init__
(self)
tests/test_gentle_actions.py:132
Method__init__
(self, frames: list[object])
tests/test_openclaw_gateway_client.py:86
Method__init__
(self, data: bytes, frame_size: int = 160)
tests/test_echo_canceller.py:259
Method__init__
(self)
tests/test_vad_capture.py:361
Method__init__
(self)
tests/test_vad_capture.py:439
Method__init__
(self, sample_rate: int = 16000)
sparky_mvp/core/webrtc_apm.py:84
Method__init__
( self, engine: str = "faster_whisper", model_size: str = "base", device: str
sparky_mvp/core/stt_engine.py:79
Method__init__
( self, model_name: str = "canopylabs/orpheus-3b-0.1-ft", dtype=torch.bfloat16,
sparky_mvp/core/orpheus_engine.py:87
Method__init__
Initialize the audio input processor. Args: stt_engine: Local STT engine instance (required)
sparky_mvp/core/audio_input_processor.py:57
Method__init__
Args: frame_size: Samples per AEC frame (160 = 10ms at 16kHz). filter_length: NLMS filter taps (3200 = 200ms echo tai
sparky_mvp/core/echo_canceller.py:86
Method__init__
( self, gateway_url: str = "ws://127.0.0.1:18789", token: str = "", client_id:
sparky_mvp/core/openclaw_gateway_client.py:72
Method__init__
( self, gateway_url: str = "ws://127.0.0.1:18789", token: str = "", camera_wor
sparky_mvp/core/openclaw_node_client.py:135
Method__init__
Args: queue_move: Callable that queues a Move on the MovementManager. Signature: queue_move(move: Move) -
sparky_mvp/core/spontaneous_gestures.py:72
Method__init__
(self, sample_rate: int = 16000, ms_in_soundcard_buf: int = 60)
sparky_mvp/core/webrtc_aecm.py:92
Method__init__
Initialize a stream chunk. Args: content: Text content of the chunk role: Role of the message sender (e.g.,
sparky_mvp/core/streaming.py:32
Method__init__
(self, middlewares: Optional[List[StreamMiddleware]] = None)
sparky_mvp/core/streaming.py:234
Method__init__
(self, stream, echo_canceller: Optional[EchoCanceller] = None)
sparky_mvp/core/aec_stream.py:26
Method__init__
(self, enrollments_path: str, threshold: float = 0.7)
sparky_mvp/core/speaker_id.py:80
Method__init__
Initialize the state machine with configuration. Args: config: Configuration dictionary from config.yaml
sparky_mvp/core/state_machine.py:79
Method__init__
Args: send_message: Async callable that sends a message through the chat pipeline. Signature: async def
sparky_mvp/core/spontaneous_speech.py:79
Method__init__
Initialize VAD with ONNX model. Args: model_path: Path to silero_vad_v5.onnx model
sparky_mvp/core/vad_capture.py:37
Method__init__
Initialize VAD speech capture. Args: audio_stream: PyAudio stream for reading audio sample_rate: Audio sampl
sparky_mvp/core/vad_capture.py:146
Method__init__
(self, stream, params: ResamplingParams)
sparky_mvp/core/resampling_stream.py:37
Method__init__
( self, media_manager: object, tts_engine: str = "openai", openai_model: str =
sparky_mvp/core/middlewares/direct_tts.py:57
Method__init__
( self, gateway_client: OpenClawGatewayClient, session_key: str = "agent:main:reachy",
sparky_mvp/core/middlewares/openclaw_provider.py:36
Method__init__
Initialize filter with a predicate function. Args: predicate: Function that returns True if chunk should be yielded,
sparky_mvp/core/middlewares/filter.py:15
Method__init__
Initialize with sentence-ending punctuation set.
sparky_mvp/core/middlewares/sentence_buffer.py:21
Method__init__
Initialize TTS middleware. Args: tts_url: URL of the TTS service endpoint timeout: Request timeout in second
sparky_mvp/core/middlewares/tts.py:44
Method__init__
Initialize interruptible TTS middleware. Args: tts_url: URL of the TTS service endpoint timeout: Request tim
sparky_mvp/core/middlewares/tts.py:460
Method__init__
( self, testbench_base_url: str = "http://127.0.0.1:8042", recordings_dir: str = "/tmp
sparky_mvp/core/middlewares/testbench_tts.py:49
Method__init__
(self, reachy_mini: ReachyMini, head_tracker: Any = None)
sparky_mvp/robot/camera_worker.py:36
Method__init__
(self, duration: float = 3.0, amplitude_deg: float = 12.0)
sparky_mvp/robot/gentle_actions.py:30
Method__init__
(self, duration: float = 3.5)
sparky_mvp/robot/gentle_actions.py:54
Method__init__
(self, duration: float = 1.5, nods: int = 2)
sparky_mvp/robot/gentle_actions.py:85
Method__init__
(self, duration: float = 2.0, shakes: int = 2)
sparky_mvp/robot/gentle_actions.py:106
Method__init__
(self, duration: float = 3.0, direction: str = "left")
sparky_mvp/robot/gentle_actions.py:126
Method__init__
(self, duration: float = 1.2)
sparky_mvp/robot/gentle_actions.py:159
Method__init__
Initialize robot animator. Args: mini: ReachyMini instance, or None for mock mode
sparky_mvp/robot/animations.py:43
Method__init__
Initialize state.
sparky_mvp/robot/speech_tapper.py:125
Method__init__
( self, confidence_threshold: float = 0.3, gpu_device: int = 1, det_size: Tupl
sparky_mvp/robot/scrfd_head_tracker.py:35
Method__init__
Initialize breathing move. Args: interpolation_start_pose: 4x4 matrix of current head pose to interpolate from interp
sparky_mvp/robot/moves.py:71
Method__init__
Initialize movement manager. Args: head_tracking_mode: "continuous" (always follow face), "orient_on_speech" (sna
sparky_mvp/robot/moves.py:248
Method__init__
Initialize the head wobbler.
sparky_mvp/robot/head_wobbler.py:32
Method__repr__
String representation for debugging.
sparky_mvp/core/streaming.py:201
Method__str__
(self)
sparky_mvp/core/stt_engine.py:41
Method_blocking_wiggle
Blocking antenna wiggle implementation. Runs in thread executor to avoid blocking async loop. Args: duration: D
sparky_mvp/robot/animations.py:82
Method_call
()
sparky_mvp/core/middlewares/direct_tts.py:309
Method_call_openai
()
sparky_mvp/core/middlewares/testbench_tts.py:218
Method_call_tts_http
Call TTS service via HTTP asynchronously and play the audio. Args: text: Text to synthesize and play
sparky_mvp/core/middlewares/tts.py:290
Method_fake_post
(*_args, **_kwargs)
tests/test_direct_tts.py:129
Method_fake_vad
(_)
tests/test_vad_capture.py:407
Method_handle_sigint
Handle SIGINT gracefully — stop the run loop so cleanup runs.
sparky_mvp/core/state_machine.py:1373
Function_make_pcm16
Convert float64 array [-32768, 32767] to int16 PCM bytes.
tests/test_echo_canceller.py:24
Method_note_tts_text
(self, text: str)
sparky_mvp/core/state_machine.py:1493
Method_on_activation
Speech onset callback — fires when VAD first detects voice. In INTERACTIVE: orient head toward speaker (at s
sparky_mvp/core/state_machine.py:321
Method_reconnect
()
tests/test_openclaw_gateway_client.py:515
Method_reconnect
()
tests/test_openclaw_gateway_client.py:949
Method_send_spontaneous_message
Send a spontaneous message through the chat pipeline (used by SpontaneousSpeechManager).
sparky_mvp/core/state_machine.py:1524
Method_speak_announcement
Generate and speak a sarcastic GLaDOS startup announcement. Uses the LLM to create a dynamic response each time.
sparky_mvp/core/state_machine.py:509
Method_wait_for_wake_word
Blocking wake word detection (runs in thread executor). Returns: True if wake word detected, False if interrupted
sparky_mvp/core/state_machine.py:927
Functionadd_message
(args)
openclaw_configs/workspace/skills/solveit-tools/bin/solveit_tools.py:56
Methodadd_middleware
Add a middleware to the pipeline.
sparky_mvp/core/streaming.py:237
Methodantenna_wiggle
Quick antenna wiggle animation (for interruption). Args: duration: Duration per antenna movement in seconds
sparky_mvp/robot/animations.py:66
Functionapm_create
* Create and configure an APM instance. * * sample_rate: 8000, 16000, 32000, or 48000 * num_channels: typically 1 (mono) * * Returns an opaque
sparky_mvp/core/apm_shim.cpp:40
Functionapm_destroy
* Destroy the APM instance and free resources. */
sparky_mvp/core/apm_shim.cpp:165
Functionapm_process
* Process near-end (mic/capture) audio through the APM, in-place. * * handle: opaque handle from apm_create() * near_end_data: pointer
sparky_mvp/core/apm_shim.cpp:131
Functionapm_process_reverse
* Feed far-end (speaker/render) audio into the APM. * * This must be called BEFORE apm_process() for each time-aligned frame. * The APM uses this t
sparky_mvp/core/apm_shim.cpp:101
Functionapm_reinitialize
* Reinitialize the APM (reset internal state without destroying it). * Useful for clear() operations. * * Returns 0 on success. */
sparky_mvp/core/apm_shim.cpp:156
Methodarguments
Get tool arguments.
sparky_mvp/core/streaming.py:105
Methodaudio_data
Get audio data.
sparky_mvp/core/streaming.py:115
Methodcancel_playback
Stop scheduling further sentences and clear the audio buffer.
sparky_mvp/core/middlewares/direct_tts.py:146
Methodcancel_playback
Cancel current playback and clear queue (for interruption). Waits for playback to actually stop before returning.
sparky_mvp/core/middlewares/tts.py:238
Methodcancel_playback
Stop scheduling any further sentences. Note: cannot stop an already-playing sentence WAV (testbench has no stop API).
sparky_mvp/core/middlewares/testbench_tts.py:117
Functioncapture_scene_description_prompt
Build a message content array with the current camera frame + question. Returns a list of content blocks suitable for Anthropic's messages API:
sparky_mvp/robot/scene_capture.py:94
Methodclear
Clear buffered speaker reference and reset the canceller state.
sparky_mvp/core/webrtc_aecm.py:270
Methodclose
(self)
tests/test_openclaw_node_client.py:78
Methodclose
(self)
tests/test_openclaw_gateway_client.py:107
Methodcontent
Get chunk content.
sparky_mvp/core/streaming.py:75
Functioncreate_animator
Create a RobotAnimator instance. Args: mini: ReachyMini instance, or None for mock mode Returns: RobotAnimator instance
sparky_mvp/robot/animations.py:290
Functiondelete_message
(args)
openclaw_configs/workspace/skills/solveit-tools/bin/solveit_tools.py:91
Methodduration
(self)
sparky_mvp/robot/gentle_actions.py:35
Methodduration
(self)
sparky_mvp/robot/gentle_actions.py:58
Methodduration
(self)
sparky_mvp/robot/gentle_actions.py:90
Methodduration
(self)
sparky_mvp/robot/gentle_actions.py:111
Methodduration
(self)
sparky_mvp/robot/gentle_actions.py:131
Methodduration
(self)
sparky_mvp/robot/gentle_actions.py:163
Methodduration
Duration property required by official Move interface.
sparky_mvp/robot/moves.py:100
Methodduration
(self)
sparky_mvp/robot/thinking.py:63
← previousnext →301–400 of 744, ranked by callers