ashrafee-dev / ashrafee-dev/scamshield-api

Performance: Non-blocking Transcription

Open
#10 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

performance
Dominant language
Python
Stars
3
Forks
10
Avg merge
14h 44m
Merged PRs (30d)
9

Description

Description: The audio_transcript call is likely blocking the asyncio event loop. This prevents the server from handling other concurrent WebSocket connections while one is being processed.

Task: Wrap the transcription call in ```run_in_executor```` or use an asynchronous library to ensure the API remains responsive.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the FastAPI WebSocket handler that calls audio_transcript and inspect how the asyncio event loop is used there. Compare run_in_executor with any available asynchronous transcription option, then verify that concurrent WebSocket connections remain responsive while transcription is running.

Written by the indexing model from the issue text.

Assessment

Tech stack
fastapi, python
Domain
api, backend, performance
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.