-
Notifications
You must be signed in to change notification settings - Fork 298
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
Flush transcription buffer on mute #557
Conversation
This PR includes the previous one? Let's work and merge the other one first, so you can rebase and then review this one. To minimize the number of changes in this one and not repeat my comments from the other one. |
|
||
private void startBufferCheck() | ||
{ | ||
new Thread(() -> { |
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.
This thread is not a daemon thread and will be preventing JVM from exiting. The code formatting is not correct.
And in general, adding a thread for every participant even if the participant will not be transcribed will increase the threads drastically and is a waste of resources.
Let's discuss this and maybe we can find a better approach.
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.
Maybe we can add one global thread that goes over transcriber sessions and go over participants every second, using the scheduled executors and flush when needed.
It is not time consuming task and there will very few to flush.
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.
I wonder though, that the buffer is not full which means that is less than 500ms of speech ... how many words is this ... I don't think that is more than one word. But yeah it may be the end of one and another one, so it will prevent a total of two words from being transcribed.
3ad71d8
to
ae318aa
Compare
…tes) has been received in the last second
f94d89a
to
bb6dd3c
Compare
No description provided.