Files
pipecat/examples/foundational/websocket-server/frames.proto
2024-05-31 11:36:52 -07:00

36 lines
593 B
Protocol Buffer

//
// Copyright (c) 2024, Daily
//
// SPDX-License-Identifier: BSD 2-Clause License
//
// Generate frames_pb2.py with:
//
// python -m grpc_tools.protoc --proto_path=./ --python_out=./protobufs frames.proto
syntax = "proto3";
package pipecat;
message TextFrame {
string text = 1;
}
message AudioRawFrame {
bytes audio = 1;
}
message TranscriptionFrame {
string text = 1;
string user_id = 2;
string timestamp = 3;
}
message Frame {
oneof frame {
TextFrame text = 1;
AudioRawFrame audio = 2;
TranscriptionFrame transcription = 3;
}
}