The Pipecat React SDK provides several components for handling audio, video, and visualization in your application.Documentation Index
Fetch the complete documentation index at: https://daily-mb-ui-agent.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
PipecatClientProvider
The root component for providing Pipecat client context to your application. It also includes built-in conversation state management, so any descendant component can use theusePipecatConversation hook to access messages without adding a separate provider.
A singleton instance of
PipecatClientUITasksProvider
Drives the in-flight task-group state surfaced byuseUITasks. Subscribes to the ambient PipecatClient’s RTVIEvent.UITask event stream (every ui-task envelope: group_started, task_update, task_completed, group_completed) and reduces them into a groups array consumers can render.
Mount inside PipecatClientProvider. Apps that don’t surface in-flight task state to the user can skip this provider; useUITasks returns an empty list and a no-op cancelTask when no UITasksProvider is mounted.
Maximum number of groups to retain. When exceeded, oldest non-running groups
are dropped first; running groups are never dropped. Omitted means unbounded.
PipecatClientAudio
Creates a new<audio> element that mounts the bot’s audio track.
PipecatClientVideo
Creates a new<video> element that renders either the bot or local participant’s video track.
Defines which participant’s video track is rendered
Defines whether the video should be fully contained or cover the box. Default:
‘contain’
Forces the video to be mirrored, if set
Triggered whenever the video’s rendered width or height changes
PipecatClientCamToggle
A headless component to read and set the local participant’s camera state.Triggered whenever the local participant’s camera state changes
If true, the component will not allow toggling the camera state. Default:
false
A render prop that provides state and handlers to the children
PipecatClientMicToggle
A headless component to read and set the local participant’s microphone state.Triggered whenever the local participant’s microphone state changes
If true, the component will not allow toggling the microphone state. Default:
false
A render prop that provides state and handlers to the children
VoiceVisualizer
Renders a visual representation of audio input levels on a<canvas> element.
The participant type to visualize audio for
The background color of the canvas. Default: ‘transparent’
The color of the audio level bars. Default: ‘black’
The number of bars to display. Default: 5
The gap between bars in pixels. Default: 12
The width of each bar in pixels. Default: 30
The maximum height at full volume of each bar in pixels. Default: 120