10#ifndef PIPECAT_DAILY_TRANSPORT_H
11#define PIPECAT_DAILY_TRANSPORT_H
15#include <nlohmann/json.hpp>
66 void connect(
const nlohmann::json& params)
override;
93 std::unique_ptr<Impl> _impl;
Definition transport.h:43
DailyTransport(DailyTransportOptions options={})
Creates a transport.
void connect(const nlohmann::json ¶ms) override
~DailyTransport() override
Disconnects if needed.
int32_t send_user_audio(const int16_t *frames, size_t num_frames) override
DailyTransport & operator=(const DailyTransport &)=delete
Transports can't be copied.
void send_ready_message(const rtvi::Message &message) override
Sends the client-ready message once the bot's audio is playing.
int32_t read_bot_audio(int16_t *frames, size_t num_frames) override
void send_message(const rtvi::Message &message) override
Sends a message to the bot.
void initialize(TransportObserver *observer) override
Prepares Daily.
DailyTransport(const DailyTransport &)=delete
Transports can't be copied.
void disconnect() override
Leaves the room.
Definition transport.h:54
Definition transport.h:88
The Pipecat C++ client SDK.
Definition client.h:29
Options to create a DailyTransport.
Definition transport.h:24
uint8_t user_audio_channels
Number of channels of the user audio you send.
Definition transport.h:28
uint32_t bot_audio_sample_rate
Sample rate of the bot audio you read, in Hz.
Definition transport.h:30
uint8_t bot_audio_channels
Number of channels of the bot audio you read.
Definition transport.h:32
uint32_t user_audio_sample_rate
Sample rate of the user audio you send, in Hz.
Definition transport.h:26
Definition messages.h:280