Skip to content

Commit

Permalink
Clarify Example Support for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvonthenen committed Jun 12, 2024
1 parent 3177017 commit e827f41
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ print("Finished")

There are examples for **every** API call in this SDK. You can find all of these examples in the [examples folder](https://github.com/deepgram/deepgram-python-sdk/tree/main/examples) at the root of this repo.

These examples provide:
Before running any of these examples, then you need to take a look at the README and install the following dependencies:

```bash
pip install -r examples/requirements-examples.txt
```

Text to Speech:

Expand Down
2 changes: 2 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ In order to run the code in the `examples` folder, you first need to:
pip install -r requirements-examples.txt
```

| **IMPORTANT:** The microphone examples are not likely to work as-is for Windows platform because of the portaudio dependency. They made require modification of the example code **plus** correctly installing/configuration the portaudio library.

## Steps to Test Your Code

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:
Expand Down
4 changes: 4 additions & 0 deletions examples/streaming/legacy_dict_microphone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This example uses the Microphone as input in order to detect conversation insights in what is being said. This example required additional components (for the microphone) to be installed in order for this example to function correctly.

## Prerequisites

This example will only work on Linux and MacOS. Windows platforms are not supported.

## Configuration

The SDK (and this example) needs to be initialized with your account's credentials `DEEPGRAM_API_KEY`, which are available in your [Deepgram Console][dg-console]. If you don't have a Deepgram account, you can [sign up here][dg-signup] for free.
Expand Down

0 comments on commit e827f41

Please sign in to comment.