Skip to main content

pipecat-alkove

Alkove for Pipecat: AlkoveFilter keeps the user's voice and removes the others and the noise (Focus), AlkoveVADAnalyzer finds where they speak (Cue), AlkoveTurnAnalyzer tells when their turn ends and lets a "mm" through while the bot speaks (Cue's end of turn head). All run on the bot's CPU, with no server and no key, with the chain of Alkove's web SDK; where speech starts and ends is Pipecat's VADParams.

Maintained by Alkove, not by the Pipecat team. Listed in Pipecat's docs as a community integration: audio filter and VAD.

Install

pip install pipecat-alkove

The models (Focus 2.3 MB with Timbre 0.97 MB, which Focus loads with it, and Cue 1.3 MB) are downloaded once into the cache and checked by their sha256: the analyzer loads them when it is created, as Silero's does, the filter when the transport starts. Pass models=alkove.Models.load(["focus", "cue"], dir=...) to read them from your own folder, which then holds alkove-timbre-1.alk too.

Use

from pipecat.audio.vad.vad_analyzer import VADParams
from pipecat.transports.base_transport import TransportParams
from pipecat_alkove import AlkoveFilter, AlkoveVADAnalyzer

params = TransportParams(audio_in_enabled=True, audio_in_filter=AlkoveFilter())
vad = AlkoveVADAnalyzer()  # VADParams(confidence=0.7) unless you pass params

Give the analyzer to your user aggregator (LLMUserAggregatorParams(vad_analyzer=vad)) or to a VADProcessor, as you would Silero's.

  • AlkoveFilter 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 transport's input rate. FilterEnableFrame(False) gives the raw microphone back at the same delay; FilterUpdateSettingsFrame(settings={"strength": 0.5}) and {"voiceprint": ...} change it while it runs. It returns the samples that are ready: a little less than the input at the start (Focus's 16 ms), then about the input's size.
  • AlkoveVADAnalyzer gives Cue's speech probability every 30 ms, at any input rate. Cue 1 opens speech at 0.7, Pipecat's own default, so that is its default. stop_secs stays Pipecat's 0.2 s: the turn analyzer (Smart Turn, or AlkoveTurnAnalyzer) decides when the turn ends, and Pipecat's latency figures assume 0.2. Behind AlkoveFilter, it hears only the user.

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:

from alkove import Models, Timbre

models = Models.load(["focus", "cue", "timbre"])
me = Timbre(models).embed(pcm)
f = AlkoveFilter(models=models, voiceprint=me)  # an alkove.Voiceprint, or a few seconds of the user alone at 16 kHz

End of turn and interruptions

The end of the user's turn from Cue's end of turn head, in place of Smart Turn, and an interruption strategy that lets a "mm" through:

from pipecat.processors.aggregators.llm_response_universal import LLMUserAggregatorParams
from pipecat.turns.user_start import TranscriptionUserTurnStartStrategy
from pipecat.turns.user_stop import TurnAnalyzerUserTurnStopStrategy
from pipecat.turns.user_turn_strategies import UserTurnStrategies
from pipecat_alkove import AlkoveTurnAnalyzer

turn = AlkoveTurnAnalyzer()  # AlkoveTurnParams(threshold=0.6, min_pause=0.3, max_pause=1.5) unless you pass params
strategies = UserTurnStrategies(
    start=[turn.interruption_strategy(), TranscriptionUserTurnStartStrategy()],
    stop=[TurnAnalyzerUserTurnStopStrategy(turn_analyzer=turn)],
)
params = LLMUserAggregatorParams(user_turn_strategies=strategies)
  • It reads the head every 0.1 s of each pause, as the audio comes, as Krisp's analyzer does: the turn is complete on the first read over threshold once the pause reaches min_pause, or at max_pause.
  • It runs Focus then Cue itself, on the audio the user aggregator gets: behind AlkoveFilter, Focus runs twice.
  • interruption_strategy() shares them: while the bot speaks, the user's turn starts only once Cue's speech spans min_duration seconds, short gaps included (AlkoveTurnAnalyzer(min_duration=0.7)); a shorter "mm" or "yeah" lets the bot go on, its transcript too. With the bot quiet, or once it stops while the user goes on, the turn starts with the VAD, as Pipecat's default.

example.py runs both on your microphone and prints when you speak. On macOS, pyaudio needs brew install portaudio first.

Tested with pipecat-ai 1.17.0.

License

Apache-2.0. See NOTICE.

Metadata

Release files for pipecat-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 pipecat-alkove 2.1.0
File Size Uploaded Provenance Actions
pipecat_alkove-2.1.0.tar.gz 13.5 kB With provenance Details for pipecat_alkove-2.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 26.6 kB

Release files / pipecat_alkove-2.1.0.tar.gz

Download URL pipecat_alkove-2.1.0.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d1f0f00600c529ecbac866b93de3297671e5461c054e4c5ad7f1943bd2e733c3
BLAKE2b-256 checksum
How to use checksums
95b3717f5ee31834af5bcf5d8158d14fc536bd53eb54b3713a754971991c21a0
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 / pipecat_alkove-2.1.0-py3-none-any.whl

Download URL pipecat_alkove-2.1.0-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13558490b31e36665020d3c29a6b1f5df578d11c4c2dfbf694e2d8b975922b49
BLAKE2b-256 checksum
How to use checksums
6c209f7f1cb2028542afefe8b095ed84501e6f9ef853ee283708743a0e7b8223
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 pipecat-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 pipecat_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