
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
@restackio/integrations-deepgram
Advanced tools
This package provides an integration for Deepgram's speech-to-text and text-to-speech services within the Restack AI framework.
This package provides an integration for Deepgram's speech-to-text and text-to-speech services within the Restack AI framework.
To install the Deepgram integration, use npm or yarn:
npm install @restackio/integrations-deepgram
Before using the Deepgram integration, make sure to set up your Deepgram API key. You can do this by setting the DEEPGRAM_API_KEY
environment variable or by passing the API key directly to the client.
To start the Deepgram service:
// services.ts
import Restack from "@restackio/ai";
import { deepgramService } from "@restackio/integrations-deepgram";
export async function services() {
const client = new Restack();
deepgramService({ client }).catch((err) => {
console.error("Error starting Deepgram service:", err);
});
}
services().catch((err) => {
console.error("Error running services:", err);
});
This integration provides two main functions:
deepgramListen
: Transcribe audio to textdeepgramSpeak
: Convert text to speech// transcribeAudioWorkflow.ts
import { log, step } from "@restackio/ai/workflow";
import * as deepgramFunctions from "@restackio/integrations-deepgram/functions";
import { deepgramTaskQueue } from "@restackio/integerations-deepgram/taskQueue";
export async function transcribeAudioWorkflow() {
const result = await step<typeof deepgramFunctions>({
taskQueue: deepgramTaskQueue,
}).deepgramListen({
base64Payload: "your_base64_encoded_audio",
options: {
model: "nova-2",
punctuate: true,
interim_results: true,
endpointing: 500,
utterance_end_ms: 2000,
},
});
log.info("result", { result: result.transcript });
}
import { log, step } from "@restackio/ai/workflow";
import * as deepgramFunctions from "@restackio/integrations-deepgram/functions";
import { deepgramTaskQueue } from "@restackio/integerations-deepgram/taskQueue";
export async function deepgramSpeakWorkflow() {
const result = await step<typeof deepgramFunctions>({
taskQueue: deepgramTaskQueue,
}).deepgramSpeak({
text: "Hello, world!",
options: {
model: "aura-arcas-en",
},
});
log.info("result", { result: result.media.payload }); // Base64 encoded audio
}
FAQs
This package provides an integration for Deepgram's speech-to-text and text-to-speech services within the Restack AI framework.
We found that @restackio/integrations-deepgram demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.