From 5f1be31562a00f233c9ee2d53efdc4461b5d75d1 Mon Sep 17 00:00:00 2001 From: Shiven Mian Date: Sat, 3 Feb 2024 19:29:03 -0800 Subject: [PATCH] fix: add back user.py docstring --- OS/01/user/user.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 OS/01/user/user.py diff --git a/OS/01/user/user.py b/OS/01/user/user.py new file mode 100644 index 0000000..ee3529f --- /dev/null +++ b/OS/01/user/user.py @@ -0,0 +1,13 @@ +""" +Handles everything the user interacts through. + +Connects to a websocket at /user. Sends shit to it, and displays/plays the shit it sends back. + +For now, just handles a spacebar being pressed— for the duration it's pressed, +it should record audio. + +SIMPLEST POSSIBLE: Sends that audio to OpenAI whisper, gets the transcript, +sends it to /user in LMC format (role: user, etc) + +MOST FUTUREPROOF: Streams chunks of audio to /user, which will then handle stt in stt.py. +""" \ No newline at end of file