ashrafee-dev / ashrafee-dev/scamshield-api
Performance: Non-blocking Transcription
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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