The example projects are meant to be used to test features locally by contributors working on this SDK.
In order to run the code in the examples
folder, you first need to:
- install/pip the dependencies contained in the
requirements-examples.txt
for the examples - be using a MacOS or Linux. These examples are geared towards non-windows platforms only.
pip install -r requirements-examples.txt
| IMPORTANT: The microphone examples may not work out-of-the-box on Windows due to the portaudio dependency. Modifications to the example code and correct installation/configuration of the portaudio library are required.
If you are contributing changes to this SDK, you can test those changes by using the prerecorded
, streaming
, or manage
"hello world"-style applications in the examples
folder. Here are the steps to follow:
If using bash, this could be done in your .bash_profile
like so:
export DEEPGRAM_API_KEY = "YOUR_DEEPGRAM_API_KEY"
or this could also be done by a simple export before executing your python application:
DEEPGRAM_API_KEY="YOUR_DEEPGRAM_API_KEY" python main.py
If you chose to set an environment variable in your shell profile (ie .bash_profile
) you can change directory into each example folder and run the example like so:
python main.py