![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@deepgram/sdk
Advanced tools
Official Node.js SDK for Deepgram. Power your apps with world-class speech and Language AI models.
This SDK only supports hosted usage of api.deepgram.com.
Deprecated JS Browser SDK
As of version 2.x, the JS Browser SDK was removed from the Node SDK and will become an independent Client SDK. To use the older SDK, please
npm i @deepgram/sdk@1.2.1
and use@deepgram/sdk/browser
.
🔑 To access the Deepgram API you will need a free Deepgram API Key.
npm install @deepgram/sdk
# - or -
# yarn add @deepgram/sdk
const { Deepgram } = require("@deepgram/sdk");
// - or -
// import { Deepgram } from "@deepgram/sdk";
const deepgram = new Deepgram(DEEPGRAM_API_KEY);
const response = await deepgram.transcription.preRecorded(
{ url: URL_OF_FILE },
options
);
See our API reference for more info.
const response = await deepgram.transcription.preRecorded(
{
stream: fs.createReadStream("/path/to/file"),
mimetype: MIMETYPE_OF_FILE,
},
options
);
See our API reference for more info.
const ws = dg.transcription.live(options);
// source.addListener('got-some-audio', async (event) => {
ws.send(event);
// })
See an example, here: https://github.com/deepgram-devs/node-live-example.
See our API reference for more info.
Returns all projects accessible by the API key.
const result = await deepgram.projects.list();
See our API reference for more info.
Retrieves a specific project based on the provided project_id.
const result = await deepgram.projects.get(project_id);
See our API reference for more info.
Update a project.
const result = await deepgram.projects.update(project_id, options);
See our API reference for more info.
Delete a project.
await deepgram.projects.delete(project_id);
See our API reference for more info.
Retrieves all keys associated with the provided project_id.
const result = await deepgram.keys.list(project_id);
See our API reference for more info.
Retrieves a specific key associated with the provided project_id.
const result = await deepgram.keys.get(project_id, key_id);
See our API reference for more info.
Creates an API key with the provided scopes.
let scopes = ["member", "etc"];
const result = await deepgram.keys.create(project_id, comment, scopes, options);
See our API reference for more info.
Deletes a specific key associated with the provided project_id.
await deepgram.keys.delete(project_id, key_id);
See our API reference for more info.
Retrieves account objects for all of the accounts in the specified project_id.
const result = await deepgram.members.listMembers(project_id);
See our API reference for more info.
Removes member account for specified member_id.
const result = await deepgram.members.removeMember(project_id, member_id);
See our API reference for more info.
Retrieves scopes of the specified member in the specified project.
const result = await deepgram.scopes.get(project_id, member_id);
See our API reference for more info.
Updates the scope for the specified member in the specified project.
let scope = "member:read";
const result = await deepgram.scopes.update(project_id, member_id, scope);
See our API reference for more info.
Retrieves all invitations associated with the provided project_id.
const result = await deepgram.invitations.list(project_id);
See our API reference for more info.
Sends an invitation to the provided email address.
const result = await deepgram.invitation.send(project_id, options);
See our API reference for more info.
Removes the specified invitation from the project.
let email = "devrel@deepgram.com";
const result = await deepgram.invitation.delete(project_id, email);
See our API reference for more info.
Removes the authenticated user from the project.
const result = await deepgram.invitation.leave(project_id);
See our API reference for more info.
Retrieves all requests associated with the provided project_id based on the provided options.
const result = await deepgram.usage.listRequests(project_id, options);
See our API reference for more info.
Retrieves a specific request associated with the provided project_id.
const result = await deepgram.usage.getRequest(project_id, request_id);
See our API reference for more info.
Retrieves usage associated with the provided project_id based on the provided options.
const result = await deepgram.usage.getUsage(project_id, options);
See our API reference for more info.
Lists the features, models, tags, languages, and processing method used for requests in the specified project.
const result = await deepgram.usage.getFields(project_id, options);
See our API reference for more info.
Retrieves the list of balance info for the specified project.
const result = await deepgram.billing.listBalances(project_id);
See our API reference for more info.
Retrieves the balance info for the specified project and balance_id.
const result = await deepgram.billing.getBalance(project_id, balance_id);
See our API reference for more info.
Interested in contributing? We ❤️ pull requests!
To make sure our community is safe for all, be sure to review and agree to our Code of Conduct. Then see the Contribution guidelines for more information.
We love to hear from you so if you have questions, comments or find a bug in the project, let us know! You can either:
FAQs
Isomorphic Javascript client for Deepgram
The npm package @deepgram/sdk receives a total of 79,745 weekly downloads. As such, @deepgram/sdk popularity was classified as popular.
We found that @deepgram/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.