added sample_rate and num_channels to protobuf AudioRawFrame

This commit is contained in:
Aleix Conchillo Flaqué
2024-05-29 16:20:04 -07:00
parent 8f7b3e1d5d
commit 4bab20643b
5 changed files with 11 additions and 7 deletions

View File

@@ -18,6 +18,8 @@ message TextFrame {
message AudioRawFrame {
bytes audio = 1;
uint32 sample_rate = 2;
uint32 num_channels = 3;
}
message TranscriptionFrame {

View File

@@ -54,7 +54,6 @@ async def main():
@transport.event_handler("on_client_connected")
async def on_client_connected(transport, client):
print("AAAAAAAA")
await task.queue_frame(TextFrame("Hello there!"))
runner = PipelineRunner()