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

moved transcriber in worker process #27

Merged
merged 2 commits into from
Feb 24, 2020
Merged

Conversation

pietrop
Copy link
Owner

@pietrop pietrop commented Feb 24, 2020

Is your Pull Request request related to another issue in this repository ?

mostly #5 but also a bit #18

Describe what the PR does

The react client render process, sends a request to the main process to get a transcription done.
The main process, sends the request to a hidden worker process window to offload the workload.

State whether the PR is ready for review or whether it needs extra work

Kind of ready, there's some more tweaks and fix that could be done, like creating a new window for every request, but that could be a subsequent optimization. For another PR.

Additional context

More details here How to run background worker processes in an Electron App

Side note. For now this seems to offload some of the computation eg when running Mozilla Deepspeech STT it doesn’t freeze the UI anymore(#5) but for scaling it to batch multiple transcripts together, I am wondering whether should just use the same window over and over, or whether should open a new window per task and what’s the max amount of windows you can open in electron etc... or whether you'd need some kind of queue system etc.. (?)

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.

1 participant