Skip to content

Conversation

@chrismbirmingham
Copy link
Contributor

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.

@saharmor
Copy link
Owner

Looks good @chrismbirmingham. Any reason you've added a new folder with a separate requirements.txt file and environment? Looking forward to tinkering with it.

@chrismbirmingham chrismbirmingham marked this pull request as ready for review November 24, 2022 05:15
@chrismbirmingham
Copy link
Contributor Author

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.

Comment on lines +86 to +93
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
Copy link

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?

Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants