Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Sets up a local ElevenLabs TTS dev environment with SDK mocking, hot reload, and quota-free testing.
50% 100%+50 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 11 of 22 without it.
A developer runs the local dev loop and encounters a `MODULE_NOT_FOUND` error when importing the official ElevenLabs JavaScript library. What command resolves this missing package issue?
Recommends running npm install @elevenlabs/elevenlabs-js
3 of 3 safety checks passed
Complete, step-by-step build of the local development workflow. The SKILL.md body carries the high-level flow and the config skeleton; this file carries the full code for every step. Follow the steps in order.
my-elevenlabs-project/
├── src/
│ ├── elevenlabs/
│ │ ├── client.ts # Singleton client wrapper
│ │ ├── config.ts # Environment-aware config
│ │ └── tts.ts # TTS service layer
│ └── index.ts
├── tests/
│ ├── __mocks__/
│ │ └── elevenlabs.ts # SDK mock for free testing
│ ├── tts.test.ts
│ └── fixtures/
│ └── sample.mp3 # Known-good audio for comparison
├── output/ # Generated audio (git-ignored)
├── .env.local # Local API key (git-ignored)
├── .env.example # Template for team
└── package.json
// src/elevenlabs/config.ts
export interface ElevenLabsConfig {
apiKey: string;
modelId: string;
defaultVoiceId: string;
outputFormat: string;
}
export function loadConfig(): ElevenLabsConfig {
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.