hack4impact-upenn / transcribe4all

Painless speech-to-text transcription
MIT License
42 stars 10 forks source link

Make transcription more concurrent #52

Open sandlerben opened 8 years ago

sandlerben commented 8 years ago

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.