Skip to content

Subject: Urgent Assistance Required: Error During Audio Recording on EC2

0

Dear AWS Support Team,

We have deployed our FastAPI backend on an EC2 t2.micro instance and our frontend on S3. While the overall deployment appears successful and the application functions as expected in most respects, we encounter an issue when attempting to record audio within the app.

The specific error message we receive is:

ERROR:models.stt:Error during transcription: Error querying device -1

We have thoroughly tested the code in our local environment without encountering this issue. However, the problem persists when running the backend on the EC2 instance.

We would greatly appreciate your assistance in resolving this matter.

Best regards,

[Harshal]
[Nsquare xperts]

asked 2 years ago350 views

1 Answer
1
Accepted Answer

Hello.

Do not only the code but also the program dependencies match the local ones?
For example, this time I'm using FastAPI, so I think it's Python, but do you have the version of Python and do you have all the necessary modules installed?
Also, this may not be very relevant, but are there any insufficient specs for EC2?
t2.micro is a small instance type, so it uses less memory and CPU.
https://aws.amazon.com/ec2/instance-types/?nc1=h_ls

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

  • All dependencies are installed in both local and hosted one but we are facing problem while recording audio all other features are properly working we have tested on m5.micro faced same problem

  • All dependencies are installed in both local and hosted one but we are facing problem while recording audio all other features are properly working we have tested on m5.micro faced same problem

  • Have you installed devices such as "Advanced Linux Sound Architecture" on EC2? If the OS is Linux, I think that something like "Advanced Linux Sound Architecture" would be required to handle audio.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.