Closed duotangx closed 1 month ago
Hi @duotangx
If you are trying locally and not doing a pip install
you need to install the dependencies of the SDK.
From the root of the repo:
pip install -r requirements.txt
If you want to run any of the examples, you need to install the dependencies the examples have:
cd examples
pip install -r requirements-examples.txt
You can find this documented on the readme: https://github.com/deepgram/deepgram-python-sdk?tab=readme-ov-file#prerequisites https://github.com/deepgram/deepgram-python-sdk/tree/main/examples
Hi @dvonthenen, thanks for your help.
I did run pip install with the requirements.txt file that I shared and verified the dependencies were installed in my venv prior to running 'vercel dev'.
Can you run this example https://github.com/deepgram/deepgram-python-sdk/blob/main/examples/streaming/http/main.py
I think this is vercel serverless functions related.
DG probably requires third party provider to run on vercel per https://vercel.com/guides/do-vercel-serverless-functions-support-websocket-connections
Yea, you might want to ask the peeps in Discord. You can join by clicking the link below. The general chat section is a great place for this kind of question https://dpgr.am/discord
I haven't use Vercel so I won't be able to help . Since this isn't python SDK related, closing out this issue.
What is the current behavior?
I am running into an issue with prerecorded local file transcription (v3 SDK) since Vercel does not support web sockets (afaik).
Steps to reproduce
Use the example.py file here: https://github.com/deepgram/deepgram-python-sdk/blob/main/examples/prerecorded/file/main.py
Expected behavior
Goal is to transcribe local prerecorded audio file using Vercel Serverless functions.
Please tell us about your environment
Other information
Appears to be driven by lack of websockets support unless I'm missing/misspecified something.
Full traceback running 'vercel dev' locally:
requirements.txt: