Skip to content
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

Fix mouse hitching #2

Open
sloganking opened this issue Oct 22, 2023 · 0 comments
Open

Fix mouse hitching #2

sloganking opened this issue Oct 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@sloganking
Copy link
Owner

sloganking commented Oct 22, 2023

for some reason transcribing using runtime.block_on()

desk-talk/src/main.rs

Lines 399 to 400 in 52b5b5e

let mut transcription = match runtime
.block_on(trans::transcribe(&client, &voice_tmp_path))

Is causing the system mouse to momentarily freeze while this takes place. This does not seem to happen when the async trans::transcribe function is run within a main function that is async.

This isn't the biggest issue as the freezes are usually small enough to be a minor nuisance. But I don't yet know what causes this and it's possible that a freeze could be longer on another machine.

@sloganking sloganking added the bug Something isn't working label Oct 22, 2023
@sloganking sloganking mentioned this issue Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant