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

Pocketsphinx STT Multithread in electron DPE #26

Closed
pietrop opened this issue Feb 24, 2020 · 2 comments
Closed

Pocketsphinx STT Multithread in electron DPE #26

pietrop opened this issue Feb 24, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@pietrop
Copy link
Owner

pietrop commented Feb 24, 2020

Is your feature request related to a problem? Please describe.

Faster STT turnaround time

Describe the solution you'd like

Use this version of pocketsphinx OpenNewsLabs/pocketsphinx-stt#5

Describe alternatives you've considered

NA

Additional context

Needs to be tested with electron DEP, by trying switching to

npm install [email protected]

and running npm run start:prod etc..

as separate issue worth looking into same segmentation and Multithread to speed up Mozilla DeepSpeech STT

@pietrop pietrop added the enhancement New feature or request label Feb 24, 2020
@pietrop pietrop self-assigned this Feb 24, 2020
@pietrop pietrop changed the title Pocketsphinx STT Pocketsphinx STT Multithread in electron DPE Feb 24, 2020
@pietrop
Copy link
Owner Author

pietrop commented Feb 24, 2020

So unfortunately no worker threads in electron yet. I have been using the cluster api instead until this feature is no longer experimental.
https://nodejs.org/dist/latest-v10.x/docs/api/cluster.html
I have example code here https://github.com/vijayee/js-offs/blob/master/src/block-cache-cluster.js
vs its worker counterpart https://github.com/vijayee/js-offs/blob/master/src/block-cache-worker.js

from electron/electron#15748 (comment)

@pietrop
Copy link
Owner Author

pietrop commented Feb 25, 2020

seems like it's not compatible for now, so closing for now to revisit if this ever changes, or if there's time to refactor using cluster.

@pietrop pietrop closed this as completed Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant