I Tried Out ElevenLabs' Skill

I Tried Out ElevenLabs' Skill

I tried ElevenLabs' voice generation, music generation, and transcription features from Claude Code using "skills" provided under the Agent Skills spec, with examples showing how it works without searching API docs.
2026.04.29

This page has been translated by machine translation. View original

Hello! I'm Yuji Nishimura from the Ops team!

This time, I tried out the skills released by ElevenLabs. You can install them with commands such as npx skills add, and then call ElevenLabs APIs for voice generation, music generation, transcription, and more from tools like Claude Code and Cursor.

What I did

I installed ElevenLabs skills into Claude Code and actually tried the following 4 of the 7 published skills.

  • text-to-speech
  • sound-effects
  • music
  • speech-to-text

Environment:

  • Tools: Claude Code + ElevenLabs skills
  • SDK: elevenlabs (Python) / @elevenlabs/elevenlabs-js (JavaScript)

What are ElevenLabs skills?

ElevenLabs skills is a skill set compliant with the Agent Skills specification, for using ElevenLabs API features from AI coding assistants. Agent Skills are like instruction documents defined in Markdown files (SKILL.md), and they bundle the procedures and reference code that an AI agent uses to carry out specific tasks.

The following 7 skills are available.

Skill Function
text-to-speech Convert text into AI voice (supports 70+ languages)
speech-to-text Transcribe audio files into text (supports 90+ languages)
sound-effects Generate sound effects from text descriptions
music Generate music from text prompts
agents Build conversational voice AI agents
voice-isolator Remove background noise and extract only the voice
setup-api-key Guide for obtaining and configuring an API key

What changes when skills are installed?

What a skill provides is not an API but "instructions (SKILL.md) for Claude Code." Once installed, Claude Code loads the skill's description at startup, and when a user makes a request such as "turn this Japanese text into speech," it automatically selects the skill that matches the description and builds the code while referring to the SKILL.md body on the spot.

Specifically, I saw the following benefits.

  • No need to search the API documentation every time: SKILL.md contains sample voice_id values, the model_id options, and how to call text_to_speech.convert(), so Claude Code can refer to them when writing scripts
  • Avoids common pitfalls: For example, SKILL.md notes at the top that on the JavaScript side you need to use @elevenlabs/elevenlabs-js rather than the old elevenlabs package (v1.x), which lowers the chance of implementing with the wrong package
  • It is Claude Code, not the skill, that runs the code: The skill itself only teaches "how to write it," and the actual script generation and execution is handled by Claude Code

This time too, Claude Code wrote sample scripts using voice_id="JBFqnCBsd6RMkjVDRZzb" (George voice) and model_id="eleven_multilingual_v2" as written in SKILL.md.

Setup

1. Get an ElevenLabs API key

Get an API key from the ElevenLabs dashboard and set it in the environment variable ELEVENLABS_API_KEY.

export ELEVENLABS_API_KEY="your-api-key"

2. Install the skills

You can add all of ElevenLabs' skills to your project with the following command.

npx skills add elevenlabs/skills

When you run it, the skill files are installed and each skill becomes available to call from Claude Code.

You can also install with gh skill install

If you have the GitHub CLI gh skill extension installed, you can install the same set of skills with this command as well.

https://dev.classmethod.jp/articles/gh-skill-agent-skills-management/

gh skill install elevenlabs/skills

When you run it, you can interactively choose the target skills, the agents to install to, and the installation scope (project/user).

This time, I installed all the skills.

? Select skill(s) to install: (all skills)
? Select target agent(s): GitHub Copilot, Claude Code, Codex
? Installation scope: Project: xxxxxxxxxxxxxx (recommended)

Installing to .agents/skills for GitHub Copilot, Codex...
✓ Installed agents (from elevenlabs/skills@main) in .agents/skills
✓ Installed music (from elevenlabs/skills@main) in .agents/skills
✓ Installed setup-api-key (from elevenlabs/skills@main) in .agents/skills
✓ Installed sound-effects (from elevenlabs/skills@main) in .agents/skills
✓ Installed speech-to-text (from elevenlabs/skills@main) in .agents/skills
✓ Installed text-to-speech (from elevenlabs/skills@main) in .agents/skills
✓ Installed voice-isolator (from elevenlabs/skills@main) in .agents/skills

Installing to .claude/skills for Claude Code...
✓ Installed agents (from elevenlabs/skills@main) in .claude/skills
(以下略)

The skill files were placed under .claude/skills/ for Claude Code and under .agents/skills/ for Copilot/Codex. The gh skill preview command shown after installation lets you review a skill's contents in advance, which is handy when importing unvetted skills.

3. Install the SDK

For Python (I used uv this time).

uv add elevenlabs

For JavaScript/TypeScript.

npm install @elevenlabs/elevenlabs-js

The Python SDK installed at the time of this test was elevenlabs 2.45.0.

Let's try it

text-to-speech

This is a skill that generates AI voice from text. It supports 70+ languages, and multiple models are available depending on the use case.

Official documentation: Text to Speech | ElevenLabs Docs

Model ID Languages Latency Use case
eleven_v3 70+ Standard Highest quality, emotional expression
eleven_multilingual_v2 29 Standard High quality, suited to long text
eleven_flash_v2_5 32 ~75ms Ultra-low latency, real-time

Let's have it read Japanese text aloud with the eleven_multilingual_v2 model.

tts.py
from elevenlabs import ElevenLabs

client = ElevenLabs()

audio = client.text_to_speech.convert(
    text="こんにちは、ElevenLabsのテストです。今日はskillを試してみました。",
    voice_id="JBFqnCBsd6RMkjVDRZzb",  # George
    model_id="eleven_multilingual_v2",
)

with open("tts_output.mp3", "wb") as f:
    for chunk in audio:
        f.write(chunk)

Running it with uv run python tts.py generated tts_output.mp3 (about 74KB, MP3 128kbps / 44.1kHz / mono). You select the voice with voice_id, and in addition to presets, you can also specify custom voices created in the dashboard.

You can listen to the generated audio here. The word meaning "to try" (tameshite) was read as the word meaning "to show" (shimeshite).

sound-effects

This is a skill that generates sound effects from text descriptions. Looping and duration specification are also supported.

Official documentation: Sound Effects | ElevenLabs Docs

Parameter Type Default Description
text string (required) — Description of the sound effect
duration_seconds number null (auto) 0.5 to 30 seconds
prompt_influence number 0.3 Adherence to the prompt (0 to 1)
loop boolean false Generate a seamless loop

Let's generate "heavy rain on a tin roof with distant thunder" for 5 seconds.

sfx.py
from elevenlabs import ElevenLabs

client = ElevenLabs()

audio = client.text_to_sound_effects.convert(
    text="Heavy rain on a tin roof with distant thunder",
    duration_seconds=5.0,
    prompt_influence=0.5,
)

with open("sfx_output.mp3", "wb") as f:
    for chunk in audio:
        f.write(chunk)

Running it generated sfx_output.mp3 (about 81KB, MP3 128kbps / 44.1kHz / stereo). The more specific the prompt, the more stable the results tended to be. Writing something like "Heavy rain on a tin roof" rather than "Rain" made it easier to generate a sound close to what I imagined.

You can listen to the generated audio here.

music

This is a skill that generates music tracks from text prompts. It can generate not only instrumentals but also songs with lyrics.

Official documentation: Music | ElevenLabs Docs

I generated a 15-second lo-fi hip hop track.

music.py
from elevenlabs import ElevenLabs

client = ElevenLabs()

audio = client.music.compose(
    prompt="A chill lo-fi hip hop beat with jazzy piano chords",
    music_length_ms=15000,
)

with open("music_output.mp3", "wb") as f:
    for chunk in audio:
        f.write(chunk)

Running it generated music_output.mp3 (about 241KB, MP3 128kbps / 44.1kHz / Joint Stereo). Generating 15 seconds took just under a minute before the response came back, so you need to watch out for wait times when generating longer tracks.

You specify the length in milliseconds with music_length_ms. Also, using composition_plan lets you finely control the style and section structure.

music_composition_plan.py
from elevenlabs import ElevenLabs

client = ElevenLabs()

plan = client.music.composition_plan.create(
    prompt="An epic orchestral piece building to a climax",
    music_length_ms=60000
)

# You can check and modify the styles and sections
print(plan.positiveGlobalStyles)

audio = client.music.compose(
    composition_plan=plan
)

You can listen to the generated music here.

speech-to-text

This is a skill that transcribes audio files into text. It supports 90+ languages, as well as speaker diarization and word-level timestamps.

Official documentation: Speech to Text | ElevenLabs Docs

Model ID Description Use case
scribe_v2 High accuracy, 90+ languages Batch processing, subtitles, long audio
scribe_v2_realtime Low latency (~150ms) Real-time transcription

I used the tts_output.mp3 generated earlier with text-to-speech as input and transcribed it with a script.

stt.py
from elevenlabs import ElevenLabs

client = ElevenLabs()

with open("tts_output.mp3", "rb") as audio_file:
    result = client.speech_to_text.convert(
        file=audio_file,
        model_id="scribe_v2",
    )

print(result.text)
print(getattr(result, "language_code", None))

The result was as follows.

こんにちは。ElevenLabsのテストです。今日はスキルを示してみました。
jpn

The last sentence was transcribed with the word meaning "to show" in place of "to try", so it reads as "I showed the skill" instead of "I tried the skill." This is not a misrecognition on the speech-to-text side; the cause is that at the earlier text-to-speech stage, the word meaning "to try" (tameshite) had been read aloud as the word meaning "to show" (shimeshite). Speech-to-text faithfully transcribed that audio.
Also, the automatic detection of the language code (jpn) was done correctly even with this short input.

You can check the audio used as input from the link in the text-to-speech section above.

Supported formats are also broad: in addition to audio files such as MP3, WAV, M4A, FLAC, and OGG, you can also transcribe from video files such as MP4 and MOV. Files up to 3GB and up to 10 hours are supported.

What I learned from trying it

Being able to request voice generation and transcription in natural language from the Claude Code terminal made for a smooth workflow. Just instructing "read this text aloud in Japanese" results in the API being called via the skill and the file being generated.

My takeaways from trying each skill are as follows.

  • text-to-speech: Even with Japanese text, the reading was natural overall, but with eleven_multilingual_v2, the word for "to try" (tameshite) was read as the word for "to show" (shimeshite). When I switched to eleven_v3, it read the same text correctly
  • sound-effects: The stability of the results changed depending on how specific the prompt was
  • music: Even about 15 seconds took time to generate, so wait times for longer tracks look like they'd be a concern
  • speech-to-text: When I fed in the TTS-generated audio as is, it was transcribed faithfully as heard (the synthesis-side misreading was reproduced as is)

The ElevenLabs API is pay-as-you-go, so it's a good idea to check the pricing page depending on your use. Text-to-speech was billed by character count, while music and sound-effects were billed per generation.

Summary

ElevenLabs skills can be installed into Claude Code as skills based on the Agent Skills specification. What I found convenient was that Claude Code assembles the code following the skill's instructions, without my having to check the ElevenLabs API documentation each time. When you want to build voice, music, or transcription into your code, it seems worth trying first.

I hope this helps someone.


Reference links:

Share this article