mohdfareed / msd-p18538

Interactive Training Robot for Fire Safety
0 stars 0 forks source link

Transcription speedup #21

Closed mohdfareed closed 7 months ago

mohdfareed commented 10 months ago

Some problems with the current transcription code might only be solvable by integrating some C code into it. The problem is that the thread recording audio is potentially too slow, causing chunks of audio to be missed.

This can be resolved by write C code that efficiently runs in the background recording audio, filtering it, and storing the recordings in a queue to be processed. This can be accomplished through ctypes in python.

This is the only part of the code that can benefit from the speedup, since the actual transcription process is API bound, with no loss in data due to speed. Further testing/debugging should be done before proceeding.

mohdfareed commented 7 months ago

I don't think we will have time to do this before Imagine RIT. I'll close it now but feel free to open it if you think we should work on it.