awslabs / amazon-transcribe-streaming-sdk

The Amazon Transcribe Streaming SDK is an async Python SDK for converting audio into text via Amazon Transcribe.
Apache License 2.0
142 stars 37 forks source link

Can't figure out how to use it with AWS Lambda since awscrt is causing issue. #32

Closed ReyanshKharga closed 3 years ago

ReyanshKharga commented 3 years ago

I used the following command:

pip3 install amazon-transcribe aiofile -t . But I get the following error when I use the layer in my lambda function:

Unable to import module 'lambda_function': No module named '_awscrt' The same works fine with virtual environment locally. I'm not sure what's the exact issue.

I even tried adding the .whl file for awscrt seperately and package with lambda, but it didn't work.

Any kind of help will be greatly appreciated. Thanks!

joguSD commented 3 years ago

Hmmm, packaging the appropriate manylinux1 wheel for your Python runtime should be the correct approach.

Are you still having issues with this?

nateprewitt commented 3 years ago

I'm going to resolve this since AWSCRT is being regularly used on Lambda now. Please let us know if you are still having issues.