-
Notifications
You must be signed in to change notification settings - Fork 275
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
Feeding raw audio data to faster whisper over websockets #134
Comments
Look at my fork, maybe it will help you I have implemented something similar. |
You have to allow access to microfone in browser (Chrome, Firefox) |
I have done that and the error still appears |
I tested a moment ago and it works for me. I had some time ago similar error but I have wrong url in addModule call |
I have the following frontend code which sends audio data over a websocket in the browser (using the microphone):
It uses the MediaRecorder API to send an audio chunk every 2 seconds. This is recieved on the backend like this:
main.py:
ASR.py:
The issue happens when I try to clear the audio buffer. My thought is to clear the buffer every time I detect a punctuation meaning a sentence has ended. However clearing the buffer throws the following error:
The text was updated successfully, but these errors were encountered: