Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algal/sparky
/ functions
Functions
744 in github.com/algal/sparky
⨍
Functions
744
◇
Types & classes
135
↳
Endpoints
20
Method
test_missing_enrollments_file
(self, tmp_path)
tests/test_speaker_id.py:87
Method
test_missing_message
(self)
tests/test_openclaw_gateway_client.py:670
Method
test_mixed_blocks
(self)
tests/test_openclaw_gateway_client.py:647
Method
test_mono_16khz
(self)
tests/test_speaker_id.py:61
Method
test_multi_frame_chunk
process_mic_chunk should handle multi-frame input.
tests/test_echo_canceller.py:214
Method
test_multi_frame_processing
Process multiple frames at once (e.g. 50ms = 5 frames).
tests/test_webrtc_apm.py:93
Method
test_multistep_tool_use_receives_all_steps
Multi-step tool-use turn: LLM speaks, calls tool, then speaks again. The Gateway sends two chat_final events — one per LLM step. The
tests/test_openclaw_gateway_client.py:888
Method
test_next_delay_in_range
(self)
tests/test_spontaneous_speech.py:72
Method
test_next_delay_minimum_floor
Even with tiny intervals, delay should never be < 60s.
tests/test_spontaneous_speech.py:83
Method
test_next_delay_randomization
Delays should not all be the same.
tests/test_spontaneous_speech.py:93
Method
test_next_delay_within_bounds
(self)
tests/test_spontaneous_gestures.py:97
Method
test_no_camera_worker_returns_error
camera.snap without camera_worker should return NO_CAMERA error.
tests/test_openclaw_node_client.py:245
Method
test_no_deltas_only_final
Edge case: no deltas at all, only final with text.
tests/test_openclaw_gateway_client.py:275
Method
test_no_frame_returns_error
camera.snap with no frame available should return NO_FRAME error.
tests/test_openclaw_node_client.py:263
Method
test_no_match
(self)
tests/test_wake_sleep.py:123
Method
test_no_speaker_ref_passthrough
With no speaker reference, mic signal should pass through unchanged.
tests/test_echo_canceller.py:80
Method
test_nod_evaluate_returns_none_antennas
Nod only moves head, not antennas.
tests/test_gentle_actions.py:60
Method
test_non_text_blocks_skipped
(self)
tests/test_openclaw_gateway_client.py:655
Method
test_none_config_uses_defaults
(self)
tests/test_spontaneous_speech.py:55
Method
test_one
(self)
tests/test_thinking.py:22
Method
test_openai_without_key_raises
(self, monkeypatch)
tests/test_direct_tts.py:101
Method
test_passthrough_no_far_end
Without speaker reference, mic should pass through (possibly filtered).
tests/test_webrtc_apm.py:68
Method
test_passthrough_no_far_end
(self)
tests/test_webrtc_aecm.py:36
Method
test_passthrough_without_aec
(self)
tests/test_echo_canceller.py:278
Method
test_pause_detection_completes_speech
Test pause detection marks speech as complete.
tests/test_vad_capture.py:155
Method
test_pick_prompt_from_list
(self)
tests/test_spontaneous_speech.py:109
Method
test_post_activation_timeout_reason_is_correct
When post_activation_timeout differs from pre-activation timeout, the reason code should be 'timeout_after_activation', not 'unknown'.
tests/test_vad_capture.py:492
Method
test_pre_activation_buffer_fills
Test circular buffer fills before activation.
tests/test_vad_capture.py:117
Method
test_prefix_with_speaker
(self)
tests/test_speaker_id.py:140
Method
test_prefix_without_speaker
(self)
tests/test_speaker_id.py:126
Method
test_presence_check_exception_treated_as_absent
If presence check raises, treat as not present (per run() logic).
tests/test_spontaneous_speech.py:170
Method
test_presence_check_false
Presence check returning False should block speech.
tests/test_spontaneous_speech.py:161
Method
test_presence_check_true
Presence check returning True should allow speech.
tests/test_spontaneous_speech.py:152
Method
test_pretrained_model_loads
Pretrained model name should resolve and load.
tests/test_wake_sleep.py:59
Method
test_process_silent_frame
(self)
tests/test_webrtc_apm.py:62
Method
test_processing_none_capture_does_not_set_interruption_flag
PROCESSING + None capture should not trigger interruption by itself.
tests/test_wake_sleep.py:240
Method
test_produces_valid_wav
(self)
tests/test_direct_tts.py:18
Method
test_prompt_count
(self)
tests/test_spontaneous_speech.py:129
Method
test_prompts_are_diverse
(self)
tests/test_spontaneous_speech.py:117
Method
test_recv_pre_yield_retries_on_connection_closed
Before any yields, ConnectionClosed triggers reconnect + retry.
tests/test_openclaw_gateway_client.py:530
Method
test_recv_retry_has_bounded_attempts
If the WS keeps dying before text is yielded, retry must give up. The recv-path retry (ConnectionClosed before _yielded_text) must ha
tests/test_openclaw_gateway_client.py:924
Method
test_rejected_chat_send
chat.send rejection yields ERROR and stops.
tests/test_openclaw_gateway_client.py:460
Method
test_rejected_connect_raises
(self)
tests/test_openclaw_node_client.py:142
Method
test_rejected_connect_raises
(self)
tests/test_openclaw_gateway_client.py:158
Method
test_remainder_passthrough
Bytes that don't fill a frame should pass through.
tests/test_echo_canceller.py:223
Method
test_require_presence_default
(self)
tests/test_spontaneous_speech.py:40
Method
test_require_presence_disabled
(self)
tests/test_spontaneous_speech.py:47
Method
test_resample_44100_to_16000
(self)
tests/test_speaker_id.py:73
Method
test_reset_clears_state
Test reset clears all internal state.
tests/test_vad_capture.py:225
Method
test_retry_preserves_identical_tool_events
Identical tool events after retry are legitimate and must not be collapsed.
tests/test_openclaw_gateway_client.py:589
Method
test_riva_wav_response
(self, monkeypatch)
tests/test_direct_tts.py:109
Method
test_run_dispatches_invoke_requests
run() should dispatch node.invoke.request events.
tests/test_openclaw_node_client.py:308
Method
test_run_id_fallback_to_idempotency_key
If ACK has no runId, fallback to idempotency key.
tests/test_openclaw_gateway_client.py:704
Method
test_run_id_from_ack
run_id should come from ACK payload.
tests/test_openclaw_gateway_client.py:691
Method
test_run_ignores_non_invoke_events
run() should skip non-invoke events.
tests/test_openclaw_node_client.py:335
Method
test_run_loop_sends_when_present
Full run loop should send when presence detected.
tests/test_spontaneous_speech.py:221
Method
test_run_loop_sends_without_presence_when_disabled
Should send even without presence when require_presence=False.
tests/test_spontaneous_speech.py:243
Method
test_run_loop_skips_on_no_presence
Full run loop should skip sending when no presence.
tests/test_spontaneous_speech.py:184
Method
test_samples_to_wav_creates_valid_wav
Test WAV file creation from samples.
tests/test_vad_capture.py:196
Method
test_select_best_face_below_threshold
(self)
tests/test_face_tracking.py:32
Method
test_select_best_face_empty
(self)
tests/test_face_tracking.py:26
Method
test_select_best_face_picks_largest_confident
(self)
tests/test_face_tracking.py:55
Method
test_select_best_face_single
(self)
tests/test_face_tracking.py:44
Method
test_send_failure_does_not_crash_run
If send_message raises, the exception is caught (per run() logic).
tests/test_spontaneous_speech.py:296
Method
test_send_message_calls_callback
_send_message should invoke the callback with the prompt.
tests/test_spontaneous_speech.py:140
Method
test_set_head_tracking_enabled
(self)
tests/test_face_tracking.py:108
Method
test_shake_evaluate
(self)
tests/test_gentle_actions.py:67
Method
test_shim_loads
Verify the .so can be loaded via ctypes.
tests/test_webrtc_apm.py:35
Method
test_short_audio_returns_unknown
(self, tmp_path)
tests/test_speaker_id.py:100
Method
test_short_input_passthrough
Input shorter than one frame should pass through unchanged.
tests/test_echo_canceller.py:92
Method
test_short_sleep_completes
Short sleep durations should complete normally.
tests/test_spontaneous_speech.py:357
Method
test_silence_not_speech
(self, engine)
tests/test_stt_engine.py:50
Method
test_silence_not_speech
(self, engine)
tests/test_stt_engine.py:93
Method
test_simple_delta_then_final
Single delta followed by final — basic happy path.
tests/test_openclaw_gateway_client.py:215
Method
test_skips_when_not_interactive
Gestures should be skipped when check_state returns False.
tests/test_spontaneous_gestures.py:112
Method
test_skips_when_presence_required_and_absent
Gestures should be skipped when presence required but not detected.
tests/test_spontaneous_gestures.py:144
Method
test_sleep_phase_no_model_goes_interactive
sleep_phase with no wake word model should transition to INTERACTIVE.
tests/test_wake_sleep.py:190
Method
test_sleep_phase_with_model_waits_for_wake
sleep_phase with wake word model should block until wake detected.
tests/test_wake_sleep.py:211
Method
test_sleep_respects_stop
_interruptible_sleep should exit early when stop() called.
tests/test_spontaneous_speech.py:337
Method
test_smooth_transition_at_stage_boundary
Antenna amplitude should change smoothly across stage 2 boundary.
tests/test_thinking.py:104
Method
test_speaker_consumed_by_processing
Speaker buffer should be consumed frame by frame.
tests/test_echo_canceller.py:194
Method
test_stage1_antenna_bounded
Stage 1 antenna amplitude should not exceed S1 limit.
tests/test_thinking.py:68
Method
test_stage1_has_antenna_movement
Stage 1 should have non-zero antenna values at non-zero time.
tests/test_thinking.py:60
Method
test_stage1_no_head_movement
Stage 1 (0-2s) should have zero head rotation.
tests/test_thinking.py:49
Method
test_stage2_has_head_movement
Stage 2 (2-5s) should have non-zero head rotation after blend.
tests/test_thinking.py:78
Method
test_stage3_larger_antenna_than_stage1
Stage 3 should have larger antenna amplitude than stage 1.
tests/test_thinking.py:88
Method
test_stale_events_from_wrong_run_skipped
Events with a different runId (from a previous aborted turn) should be silently skipped, not mistaken for the current turn.
tests/test_openclaw_gateway_client.py:724
Method
test_stats
(self)
tests/test_webrtc_apm.py:85
Method
test_stats_updated
(self)
tests/test_echo_canceller.py:136
Method
test_stats_with_speaker_ref
(self)
tests/test_echo_canceller.py:144
Method
test_stereo_to_mono
(self)
tests/test_speaker_id.py:68
Method
test_stop_closes_ws
(self)
tests/test_openclaw_node_client.py:363
Method
test_stop_flag
stop() should set the stopping flag.
tests/test_spontaneous_speech.py:272
Method
test_stop_terminates_loop
(self)
tests/test_spontaneous_gestures.py:173
Method
test_stops_when_no_valid_emotions
Manager exits immediately if no valid emotions found.
tests/test_spontaneous_gestures.py:189
Method
test_stretch_duration
(self)
tests/test_gentle_actions.py:35
Method
test_stretch_evaluate_returns_tuple
(self)
tests/test_gentle_actions.py:39
Method
test_string_blocks
(self)
tests/test_openclaw_gateway_client.py:639
Method
test_substring_match
(self)
tests/test_wake_sleep.py:119
Method
test_subtle_weighted_higher_than_dramatic
Subtle gestures should be more likely than dramatic ones.
tests/test_spontaneous_gestures.py:49
← previous
next →
601–700 of 744, ranked by callers