cli-and-server
Operate speech-to-speech from the Python CLI, choosing serve, local, or talk safely and tuning server binding, audio, endpointing, live transcription, session capacity, and the command-level LLM proxy.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- cli-and-server
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Operate speech-to-speech from the Python CLI, choosing serve, local, or talk safely and tuning server binding, audio, endpointing, live transcription, session capacity, and the command-level LLM proxy.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/cli-reference.md10.4 KB
- 参考文档references/server-runtime.md8.2 KB
- 参考文档references/troubleshooting.md6.8 KB
- 脚本scripts/check_cli_profiles.py4.7 KB
03 SKILL.md 正文
CLI and server operation
Use this sub-skill when the task is to start or connect to the Python package, choose a command profile, expose the Realtime server, or diagnose command-level capacity and endpointing behavior.
Route by intent
- Build or expose a Realtime service: use
speech-to-speech serve. - Connect the packaged microphone/speaker client to an existing service: use
speech-to-speech talk --url <full-endpoint>. - Run the service and packaged audio client together on one machine: use
speech-to-speech local; it is forced to loopback and accepts local audio flags, not a public host. - Choose STT, LLM, TTS implementations, optional extras, language/voice models, or direct-audio model compatibility: route to components-and-backends.
- Debug Realtime events, WebSocket/WebRTC transport, tool calls, or protocol lifecycle: route to realtime-api.
Safe operating sequence
- Pick exactly one of
serve,talk, orlocal; use the command-specific flags rather than mixing server and client options. - Start with the default profile unless a local LLM, a provider base URL, or a platform preset is intentional. Read CLI reference for the profile commands and invalid combinations.
- Keep
serveon127.0.0.1unless a trusted network or an authenticated gateway is already in place. Read server runtime before using--host 0.0.0.0or--enable_llm_proxy. - For choppy or premature turns, tune VAD and Smart Turn together rather than
changing the LLM first. For capacity errors, size
--num_pipelinesto the number of concurrent sessions and watch forsession_limit_reached. - Use the bundled safe checker for parser/default smoke checks:
scripts/check_cli_profiles.py. It does not download models or start a server.
Non-negotiable command rules
talkowns the full Realtime URL and audio-client options; it does not accept server host/port, backend selectors, or pipeline flags.serveowns host/port and pipeline flags; it does not accepttalk's--urlorlocal's--local_audio_*flags.localowns the loopback port and--local_audio_*flags; it rejects--hostand always connects tows://127.0.0.1:<port>/v1/realtimeinternally.- The old top-level
--mode realtimeand--mode localare temporary aliases with a deprecation warning. Other old mode values are rejected; migrate to the three-command family.
Detailed flags, profiles, security notes, endpointing behavior, and failure handling are bundled in:
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).