-
-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP Whisper Websocket #8
base: main
Are you sure you want to change the base?
Conversation
Looks good @chrismbirmingham. Any reason you've added a new folder with a separate |
I left app.py as it was in case you care about react vs fastapi. main.py isn't the cleanest code I have ever written but it works. Let me know if you have any questions, but otherwise I'll probably be taking this in a more interactive direction. |
if start<=10: | ||
if start == 5: | ||
first_data = first_bytes+joined_data | ||
data_bytes = io.BytesIO(first_data) | ||
audio_clip = AudioSegment.from_file(data_bytes, codec='opus') | ||
rms_threshold = audio_clip.rms * (1+rms_increase) | ||
print("RMS Threshold = ", rms_threshold) | ||
start+=1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't figure out what the purpose of this if statement is?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it for making a 10 seconds chunk of audio?
I have added a working websocket with fastAPI. I am still learning react so I'll update that connection after I play around a bit more. If you have any suggestions beyond adding another button for "live" transcription comments and feedback are welcome.