Real-time voice agents, built for natural conversation.
A Python SDK, server, and desktop workspace for real-time voice agents.
English | 简体中文
Lalk brings the complete real-time voice pipeline into one project: microphone capture, voice activity detection, turn detection, speech recognition, Agent execution, speech synthesis, interruption handling, observability, a local server, and a Tauri desktop application.
The Python SDK is modular, so each audio, ASR, VAD, Agent, TTS, and turn-detection component can be replaced independently. The desktop application packages the Python server as a local sidecar and keeps runtime traffic on localhost.
- Full-duplex voice sessions with natural user interruption.
- Native macOS VoiceProcessingIO audio with echo cancellation.
- Silero VAD, adaptive input gating, and Smart Turn semantic turn detection.
- Local ASR and interchangeable cloud speech recognition implementations.
- Bumblehive-powered Agent runtime with streaming events and tool execution.
- Streaming TTS with word-level playback marks.
- Conversation inactivity policies and proactive follow-up support.
Lalk currently targets Apple Silicon Macs (M-series) running macOS 14 or later.
- Apple Silicon Mac
- macOS 14+
- Python 3.11+
- Node.js 22+
- pnpm 10.33.0
- Rust stable toolchain
- Xcode Command Line Tools
Install the Python SDK from PyPI:
python -m pip install lalkFor repository development, create and activate a Python environment:
conda create -n lalk_env python=3.11 -yInstall all project dependencies and verify the environment:
pnpm run setupThe setup command prepares the Python and Node.js dependencies required for development and desktop packaging.
If downloading from the default PyPI index is slow, use the Tsinghua PyPI mirror for this setup command only:
PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple pnpm run setupStart the local server on 127.0.0.1:17841:
pnpm dev:serverIn another terminal, start the WebUI:
pnpm dev:webStart the desktop application in development mode:
pnpm dev:desktopCreate the Apple Silicon macOS application and DMG installer:
pnpm build:desktopThe installer is written to:
desktop/src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/
The build pipeline automatically:
- Compiles the native VoiceProcessingIO library.
- Packages the Python server as the
lalk-serversidecar. - Builds the React WebUI.
- Bundles and signs the Tauri application locally.
- Creates the Apple Silicon DMG.