PipecatClientProvider
The root component for providing Pipecat client context to your application.A singleton instance of
PipecatClient
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