Make agentic voice AI feel alive — a Pipecat signal processor that fires when the bot has gone quiet thinking or running tools, so the app can speak a filler.
pip install pipecat-thinking-backchannel Copy PIP instructions
A signal processor that knows when your Pipecat agent has gone quiet at work: the first-token wait, or a tool that's taking a while.
Ask a voice agent something that needs a tool and count the silences: one while the model decides to call the tool, one while the tool runs, one more for every extra iteration, and a final one for the reply's first token. An agent that calls three tools before answering can leave the user listening to nothing for tens of seconds, spread over five gaps. Silence while someone is "working on it" reads as a hang, so the user repeats the question or hangs up.
The fix is two decisions, and pipecat's pipelines are clearest when they stay separate. When is the bot quietly working? That's a frame state machine: this package's one job. What to say about it? That's yours: a fixed phrase, a rotating list, a phrase per tool, silence. The processor fires on_bot_working_idle(kind, function_name); you handle the event — the same signal/action split as pipecat's UserIdleController on the user side.
Because the default action speaks through your real TTS (TTSSpeakFrame with append_to_context=False), the filler is a real bot utterance: turn tracking, RTVI events, interruptions and mute strategies all behave exactly as they do for any other reply, and the filler never reaches the LLM context.
uv add pipecat-thinking-backchannel Usage Place the processor between the LLM and the TTS, and wire the event:
from pipecat_thinking_backchannel import BotWorkingIdleProcessor, speak_filler idle = BotWorkingIdleProcessor() idle.add_event_handler("on_bot_working_idle", speak_filler(tts)) pipeline = Pipeline([ transport.input(), stt, context_aggregator.user(), llm, idle, # between the LLM and the TTS tts, transport.output(), context_aggregator.assistant(), ]) speak_filler(tts) is the default action: it picks a phrase by kind ("llm" for the first-token wait, "tool" for tool waits) and queues it as a TTSSpeakFrame(phrase, append_to_context=False) on your TTS. Bring your own words:
import random @idle.event_handler("on_bot_working_idle") async def on_bot_working_idle(processor, kind, function_name=None): if function_name == "get_weather": phrase = "Checking the sky real quick." else: phrase = random.choice(("One moment.", "Let me check on that.")) await tts.queue_frame(TTSSpeakFrame(phrase, append_to_context=False)) The dials from pipecat_thinking_backchannel import BotWorkingIdleProcessor, BotWorkingIdleParams idle = BotWorkingIdleProcessor(params=BotWorkingIdleParams( llm_delay_s=1.0, # quiet this long waiting for the first token tool_delay_s=0.8, # quiet this long waiting on a tool cooldown_s=4.0, # minimum time between events fire_probability=0.9, # below 1.0, or it sounds mechanical max_per_episode=2, # most events per reply (from first arm to reply end) )) A wait that expires while the bot is still speaking is held, and fires the moment the bot actually goes quiet: the filler belongs to the silence, not to the sentence it would have talked over.
No VAD, no turn model, no ONNX — a frame state machine with one timer.
The event is the whole API. What the app does with it — speak, play a clip, update a UI, log — is the app's decision, which is exactly where per-tool phrases and learned tool durations belong as they grow.
cp examples/.env.template examples/.env # add your keys uv run examples/bot.py --transport webrtc A support agent whose routine lines repeat; call it twice and hear the second call come alive on the same phrases. The stats log at connect/disconnect shows what the signal caught.
agentic backchannel conversational-ai pipecat tool-calling voice-ai
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
None of the files in this release were uploaded with provenance metadata.
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.




