This guide documents all the functionality available in the Deepgram .NET SDK, and explains in detail how the library works. All the official Deepgram SDKs are open source. To learn more about this SDK specifically, visit the .NET SDK repository on GitHub.
The .NET SDK is only compatible with the Deepgram API with a base URL of
https://api.deepgram.com/v1. If you use the base URL of
https://brain.deepgram.com/v2 then speak to sales to determine if this SDK is right for you.
Before using the .NET SDK, you'll need to do a few things.
Create a Deepgram Account
Before you can use Deepgram products, you'll need to create a Deepgram account. Signup is free and includes:
- $150 in credit, which gives you access to:
- all base models
- pre-recorded and streaming functionality
- all features
Create a Deepgram API Key
To access Deepgram’s API, you'll need to create a Deepgram API Key. Make note of your API Key; you will need it later.
You can install the Deepgram .NET SDK as a dependency in your application using Nuget. Here's how:
dotnet add package Deepgram
Next you should import the Deepgram library in your application code:
Once the SDK is installed and imported, you'll want to create a single instance of the Deepgram client. You should specify your API key here so that your application will be authorized to connect to Deepgram.
const deepgram = new Deepgram(DEEPGRAM_API_KEY)
With the Deepgram client initialized, you can now send requests to the Deepgram API to transcribe audio, manage projects & keys, and retrieve usage information.