Skip to content

Commit

Permalink
Merge branch 'deepgram:main' into RefatorUserAgentUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
CopperBeardy authored Oct 31, 2023
2 parents 0ac50a6 + 12c5acb commit 6715b13
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Official .NET SDK for [Deepgram](https://www.deepgram.com/). Power your apps wit
- [Installation](#installation)
- [Targeted Frameworks](#targeted-frameworks)
- [Configuration](#configuration)
- [Custom API Endpoint](#custom-api-endpoint)
- [Examples](#examples)
- [Transcription](#transcription)
- [Remote Files](#remote-files)
Expand Down Expand Up @@ -96,6 +97,16 @@ To setup the configuration of the Deepgram Client you can do one of the followin
var credentials = new Credentials(YOUR_DEEPGRAM_API_KEY);
var deepgramClient = new DeepgramClient(credentials);
```
## Custom API Endpoint

In order to point the SDK at a different API endpoint (e.g., for on-prem deployments), you can pass in an object setting the `API_URL` when initializing the Deepgram client.

```csharp
bool REQUIRE_SSL = false; // defaults to true - set depending on server configuration
var API_URL = "localhost:8080"; // defaults to api.deepgram.com
var credentials = new Credentials(YOUR_DEEPGRAM_API_KEY, API_URL, REQUIRE_SSL);
var deepgram = new DeepgramClient(credentials);
```

# Examples

Expand Down

0 comments on commit 6715b13

Please sign in to comment.