diff --git a/examples/foundational/websocket-server/frames.proto b/examples/foundational/websocket-server/frames.proto new file mode 100644 index 000000000..7ecea6d25 --- /dev/null +++ b/examples/foundational/websocket-server/frames.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; + +package dailyai_proto; + +message TextFrame { + string text = 1; +} + +message AudioFrame { + bytes audio = 1; +} + +message TranscriptionFrame { + string text = 1; + string participant_id = 2; + string timestamp = 3; +} + +message Frame { + oneof frame { + TextFrame text = 1; + AudioFrame audio = 2; + TranscriptionFrame transcription = 3; + } +} diff --git a/examples/foundational/websocket-server/index.html b/examples/foundational/websocket-server/index.html index 51b409573..130faeb9e 100644 --- a/examples/foundational/websocket-server/index.html +++ b/examples/foundational/websocket-server/index.html @@ -15,8 +15,12 @@

WebSocket Audio Stream