sidharthanup / Audio-Analyzer-and-Transcription-Tool

End to end information extraction from audio input.
MIT License
0 stars 2 forks source link

Sequential processing #43

Closed mnchase closed 5 months ago

mnchase commented 6 months ago

For large folders of files, users may prefer slower overall output if they receive files to work with more quickly.

rphill299 commented 6 months ago

The code is in a good spot for this to be implemented.

A big roadblock is having react wait for each axios call to finish. currently each file gets sent to the backend at the same time and it isn't handled properly.

I've mostly looked into using await/async, with no success. I've followed code snippets from online exactly, but I've never gotten anything to actually wait (backend always receives all calls at once)

rphill299 commented 6 months ago

Completed the implementation of sequential processing within a new endpoint.

React waits for each axios call to finish by recursively making the next axios call within the .finally() block.

Sequential call can easily be configured to pass user's file to different endpoints, and expects to receive back a status code (0 for success), a transcript, and optionally a detected language