
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@restackio/integrations-elevenlabs
Advanced tools
This package provides an integration with ElevenLabs API for text-to-speech conversion using Restack.
This package provides an integration with ElevenLabs API for text-to-speech conversion using Restack.
To install the package, use npm or yarn:
npm install @restackio/integrations-elevenlabs
First, import the necessary modules and set up the ElevenLabs service:
// services.ts
import Restack from "@restackio/ai";
import { elevenlabsService } from "@restackio/integrations-elevenlabs";
export async function services() {
const client = new Restack();
elevenlabsService({ client }).catch((err) => {
console.error("Error starting ElevenLabs service:", err);
});
}
services().catch((err) => {
console.error("Error running services:", err);
});
To convert text to speech, use the elevenlabsConvert
function:
// convertTextToSpeech.ts
import { log, step } from "@restackio/ai/workflow";
import * as elevenLabsFunctions from "@restackio/integrations-elevenlabs/functions";
import { elevenlabsTaskQueue } from "@restackio/integerations-elevenlabs/taskQueue";
export async function convertTextToSpeechWorkflow() {
const result = await step<typeof elevenLabsFunctions>({
taskQueue: elevenlabsTaskQueue,
}).elevenlabsConvert({
text: "Hello, world!",
apiKey: "YOUR_ELEVENLABS_API_KEY",
});
log.info("result", { result: result.media.payload }); // Base64 encoded audio
}
The elevenlabsConvert
function accepts the following parameters:
text
(required): The text to convert to speech.voiceId
(optional): The ID of the voice to use. Defaults to "fCxG8OHm4STbIsWe4aT9".options
(optional): Additional options for the text-to-speech conversion.twilioEncoding
(optional): Set to enable Twilio-compatible encoding.apiKey
(required): Your ElevenLabs API key.To use the ElevenLabs client without explicitly passing the API key, set the following environment variable:
ELEVENLABS_API_KEY=your_api_key_here
FAQs
This package provides an integration with ElevenLabs API for text-to-speech conversion using Restack.
The npm package @restackio/integrations-elevenlabs receives a total of 10 weekly downloads. As such, @restackio/integrations-elevenlabs popularity was classified as not popular.
We found that @restackio/integrations-elevenlabs 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.