mohdfareed / msd-p18538

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

Backend refactor #27

Closed mohdfareed closed 5 months ago

mohdfareed commented 6 months ago

Working on streaming audio with multiple listners complicated the backend, requiring a rework. This pull request implements an events-based system to facilitate communication between services. it allows services to be attached together to form complex tasks.

Websockets are used as an example usage (WIP) of this system. They are used to stream audio from a single client, transcribing it, and streaming the transciption to multiple clients.

Looks like we can't create draft pull requests because it is only "available in public repositories with GitHub Free and GitHub Pro, and in public and private repositories with GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server."

Resolves #23

mohdfareed commented 5 months ago

The current implementation uses a local microphone and plays the audio back to a local speaker. It is triggered through the transcription button on the frontend. It is set as an example of how the backend can be used.