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

Make transcription more concurrent #52

Open
sandlerben opened this issue Jul 5, 2016 · 0 comments
Open

Make transcription more concurrent #52

sandlerben opened this issue Jul 5, 2016 · 0 comments

Comments

@sandlerben
Copy link
Member

sandlerben commented Jul 5, 2016

A lot of the transcription process could be done concurrently.

  1. Since an audio file is already split when it is too large, there is no reason that each chunk can't be transcribed concurrently.
  2. Uploading the audio file to backblaze can also happen concurrently.
  3. Converting each transcription from an IBMResult to a Transcription can happen concurrently.

The tricky part about adding concurrency is error handling. Right now, since only one goroutine is spawned per transcription, if that goroutine panics, the panic can be caught. From my understanding, if the gourtine launches other gourtines, this panic catching no longer works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant