Docs index: /llms.txt · every page as Markdown: add .md

‹ Platforms

Pipecat troubleshooting

Fix Pipecat avatar start, video and session errors by symptom.

SymptomCauseFix
ValueError: BitHumanVideoService needs an avatar modelno model_path= and no BITHUMAN_MODEL_PATHpass model_path="avatar.imx" or export BITHUMAN_MODEL_PATH=…
ErrorFrame: the bitHuman avatar could not start: ImportError: The bitHuman Python SDK is not installedbithuman is missing from this environmentactivate the venv, then pip install "pipecat-bithuman[expression-2]"
ErrorFrame: could not start: … api_secret is requiredno secret in the bot’s environmentexport BITHUMAN_API_SECRET=…, or pass api_secret=
ErrorFrame: could not start: … that API secret was not acceptedthe secret was revoked or mistypedcreate a new one under API secrets
ErrorFrame: could not start: … API and SDK access starts at the Creator planfrom 2026-10-12, a Free accountchoose a plan
ErrorFrame: could not start: … this avatar needs one more package with an Expression 2 filethe expression-2 extra is missingpip install "pipecat-bithuman[expression-2]"
The bot speaks but shows no video, after an ErrorFramethe avatar failed, and TTS audio passes through by defaultfix what the ErrorFrame names; audio_passthrough_on_error=False drops the voice too
No video and no ErrorFramevideo out is off in the transportset video_out_enabled=True in the transport’s params
The picture is resized or stretchedthe transport’s video size differs from the avatar’sset video_out_width and video_out_height to the size the service logs on the first frame
Log: queued speech did not finish in … s; closingat EndFrame the service waits for the queued speech plus stop_frame_timeout_s and 1 s, at most end_drain_timeout_s (30 s by default), then closes the avatarif the logged wait equals end_drain_timeout_s, raise it
Session time keeps running after the user leavesthe pipeline still runs, so the avatar stays opencancel the pipeline when the participant leaves (await worker.cancel()), or end it with EndFrame
404 NOT_FOUND downloading a modelnot your agent and not a sample avatarcheck the code under your agents

Errors from the Python SDK itself: Python troubleshooting.