Skip to main content

livekit-plugins-alkove

Alkove for LiveKit Agents: Focus keeps the user's voice and removes the others and the noise, Cue finds where they speak and hears when their turn ends. All run on the agent's CPU, with no server and no key, with the chain and the speech rules of Alkove's web SDK.

Install

pip install livekit-plugins-alkove
python my_agent.py download-files     # Focus and Cue into the cache, checked by their sha256

Use

from livekit.agents import AgentSession, room_io
from livekit.plugins import alkove

session = AgentSession(vad=alkove.VAD.load(), ...)
await session.start(
    agent,
    room=ctx.room,
    room_options=room_io.RoomOptions(
        audio_input=room_io.AudioInputOptions(noise_cancellation=alkove.Focus()),
    ),
)
  • alkove.Focus() is a rtc.FrameProcessor. It learns the user's print from their first seconds of speech and then keeps only them, or with voiceprint= the voice of that print from the start; strength= and normalize= work as in the web SDK. It works at the session's sample rate (24 kHz by default) and gives each frame back at the size it came in, about 37 ms behind: whole 10 ms frames, as LiveKit's gain control needs. The models are read from the cache download-files filled when it is created. In console mode LiveKit reads the microphone itself, without RoomIO: Focus is not applied there, Cue is. Test Focus in a room (dev).
  • alkove.VAD.load() gives one speech probability every 30 ms, with speech=alkove.SpeechParams(confidence=0.7, exit_confidence=0.4, start_secs=0.2, stop_secs=0.6) by default. It counts as the turn detector's min_silence_duration (stop_secs). The end of speech carries its audio from prefix_padding_duration (0.5 s) before its start, max_buffered_speech (60 s) at most. Behind Focus, it hears only the user.

Cue as the turn detector

from livekit.agents import AgentSession, TurnHandlingOptions
from livekit.plugins import alkove

session = AgentSession(
    vad=alkove.VAD.load(),
    turn_handling=TurnHandlingOptions(
        turn_detection=alkove.TurnDetector(),  # threshold=0.6, min_pause=0.3, max_pause=1.5
        endpointing={"max_delay": 1.5},
        interruption={"mode": "vad", "min_duration": 0.7},
    ),
    ...
)
  • A streaming turn detector: it hears the user's audio, Focus then Cue on the agent's CPU, and reads Cue's end of turn head every 0.1 s of each pause. The session asks once the user has been quiet 0.2 s; the answer comes on the first read over threshold once the pause reaches min_pause, or at max_pause with the head's last read.
  • Over threshold, the session ends the turn after its short delay (0.3 s from the end of speech with a streaming detector); under it, after its long one. endpointing={"max_delay": 1.5} keeps the long one at max_pause, as the web library does.
  • Behind alkove.Focus, Focus runs twice: once on the track, once in the detector.
  • LiveKit has no slot for an interruption detector of another provider. Its VAD mode with min_duration=0.7 is the rule Alkove's web library applies: with Cue as the VAD, a "mm" or a "yeah" shorter than that lets the agent go on.

To keep one known person's voice from the start, make their print with Timbre, from 1.5 s of their voice or more at 16 kHz:

models = alkove.Models.load(["focus", "cue", "timbre"])
me = alkove.Timbre(models).embed(pcm)
focus = alkove.Focus(models=models, voiceprint=me)

The models are loaded once per process and shared by every session. Pass models=alkove.Models.load(["focus", "cue"], dir=...) to read them from your own folder.

Tested with livekit-agents 1.9.0.

License

Apache-2.0. See NOTICE.

Metadata

Release files for livekit-plugins-alkove 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for livekit-plugins-alkove 2.1.0
File Size Uploaded Provenance Actions
livekit_plugins_alkove-2.1.0.tar.gz 13.6 kB With provenance Details for livekit_plugins_alkove-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for livekit-plugins-alkove 2.1.0
File Interpreter ABI Platform Actions
livekit_plugins_alkove-2.1.0-py3-none-any.whl Python 3 none any Details for livekit_plugins_alkove-2.1.0-py3-none-any.whl

Total release size: 33.0 kB

Release files / livekit_plugins_alkove-2.1.0.tar.gz

Download URL livekit_plugins_alkove-2.1.0.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6a126fe4f59b2594165d5635fe66c7fb839e7f1a291074bcda13ca4d2beb2bb7
BLAKE2b-256 checksum
How to use checksums
c57e2fc118c140458cea6b3e2ad639dd107037f0909d0cdbdb8ce13e154060fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / livekit_plugins_alkove-2.1.0-py3-none-any.whl

Download URL livekit_plugins_alkove-2.1.0-py3-none-any.whl
Size 19.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ab4670656227194d28a8cad55d4c3fd1c24545b07db0fa8be05d03d925fc122
BLAKE2b-256 checksum
How to use checksums
ca1f5afdfeb9cebff75e310aad98690d5309185c4d378d492c611bc4b02c68fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for livekit-plugins-alkove 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for livekit_plugins_alkove-2.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page