All posts

Build With the Official Deepgram SDKs

Build With the Official Deepgram SDKs

We love empowering our developer communities to take full advantage of voice in their applications. So, we’re announcing two new official SDKs for Node.js and Python. Both of these SDKs make it easier than ever to add automated speech-to-text recognition to your applications.

How Easy Is It?

To get started, make sure you have a Deepgram account by signing up at After signing up, log in and get an API key. Then, in your terminal, run the appropriate command below to install the SDK.


npm install @deepgram/sdk


pip install deepgram-sdk

Once the SDK has been installed, the following snippets will allow you to transcribe a prerecorded audio file. Be sure to replace YOUR_DEEPGRAM_API_KEY with the API key, you created earlier.


const { Deepgram } = require("@deepgram/sdk");

const deepgramApiKey = "YOUR_DEEPGRAM_API_KEY";

function main() {
  return new Promise((resolve, reject) => {
    (async () => {
      try {
        const deepgram = new Deepgram(deepgramApiKey);
        const transcription = await newDeepgram.transcription.preRecorded(
            url: "",
            punctuate: true,
        console.dir(transcription, { depth: null });
      } catch (err) {
        console.log(`Err: ${err}`);


from deepgram import Deepgramimport asyncio, json


async def main():
    # Initializes the Deepgram SDK
  dg_client = Deepgram(DEEPGRAM_API_KEY)
  source = {'url': ''}
  response = await dg_client.transcription.prerecorded(source)
  print(json.dumps(response, indent=4))

Contributions Welcome

Our SDKs are still in their infancy, but we’re building them in public. We welcome all issues and pull requests to our Node.js and Python repositories. Of course, we’d also love to hear what you’re building, so tweet at @DeepgramDevs and let us know!

More with these tags:

Share your feedback

Thank you! Can you tell us what you liked about it? (Optional)

Thank you. What could we have done better? (Optional)

We may also want to contact you with updates or questions related to your feedback and our product. If don't mind, you can optionally leave your email address along with your comments.

Thank you!

We appreciate your response.