elevenlabs-tts by glebis/claude-skills
npx skills add https://github.com/glebis/claude-skills --skill elevenlabs-tts使用 ElevenLabs 先进的文本转语音 API 从文本生成专业音频文件。该技能提供预设的语音配置(包含合理的默认值)、语音参数自定义功能,并可直接访问 scripts/elevenlabs_tts.py 脚本进行程序化控制。
要从文本生成音频:
.env 文件包含有效的 ELEVENLABS_API_KEYpython scripts/elevenlabs_tts.py "您的文本内容"python scripts/elevenlabs_tts.py "文本" --voice adam --output audio/output.mp3提供七种预设语音。完整语音描述请参阅 references/api_reference.md:
rachel (默认) - 清晰、专业的女声广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
adam - 深沉、权威的男声bella - 温暖、友好的女声elli - 年轻、热情的女声josh - 友好、对话式的男声arnold - 深沉、有力的男声ava - 富有表现力、动态的女声要转换为语音的文本。支持任意长度。
使用预设名称(例如 rachel、adam)或直接的 ElevenLabs 语音 ID 来指定语音。
指定输出文件路径。默认为 output.mp3。目录会自动创建。
from scripts.elevenlabs_tts import generate_speech
path = generate_speech(
text="Hello, this is a test message",
voice_id="rachel"
)
# 使用默认语音
python scripts/elevenlabs_tts.py "Generate this text"
# 使用自定义语音和稳定性
python scripts/elevenlabs_tts.py "Different voice" --voice adam --stability 0.7
# 指定自定义输出路径
python scripts/elevenlabs_tts.py "Save here" --output audio/narration.mp3
# 列出可用语音
python scripts/elevenlabs_tts.py "" --list-voices
eleven_monolingual_v1 模型(可覆盖)scripts/elevenlabs_tts.py - 用于文本转语音生成的主要 Python 脚本。可作为模块导入或从命令行执行。references/api_reference.md - 详细的 API 文档,包括语音描述、参数解释和使用示例。.env 和 .env.example - 用于安全存储 API 凭证的环境配置文件。每周安装量
94
代码仓库
GitHub 星标数
71
首次出现
2026年1月23日
安全审计
安装于
opencode75
gemini-cli74
codex72
cursor68
claude-code67
github-copilot64
Generate professional audio files from text using ElevenLabs' advanced text-to-speech API. The skill provides pre-configured voice presets with sensible defaults, voice parameter customization, and direct access to the scripts/elevenlabs_tts.py script for programmatic control.
To generate audio from text:
.env file contains a valid ELEVENLABS_API_KEYpython scripts/elevenlabs_tts.py "Your text here"python scripts/elevenlabs_tts.py "Text" --voice adam --output audio/output.mp3Seven pre-configured voices are available. See references/api_reference.md for complete voice descriptions:
rachel (default) - Clear, professional femaleadam - Deep, authoritative malebella - Warm, friendly femaleelli - Young, enthusiastic femalejosh - Friendly, conversational malearnold - Deep, powerful maleava - Expressive, dynamic femaleThe text to convert to speech. Any length is supported.
Specify voice using preset name (e.g., rachel, adam) or direct ElevenLabs voice ID.
Specify the output file path. Default is output.mp3. Directories are created automatically.
from scripts.elevenlabs_tts import generate_speech
path = generate_speech(
text="Hello, this is a test message",
voice_id="rachel"
)
# With default voice
python scripts/elevenlabs_tts.py "Generate this text"
# With custom voice and stability
python scripts/elevenlabs_tts.py "Different voice" --voice adam --stability 0.7
# To custom output path
python scripts/elevenlabs_tts.py "Save here" --output audio/narration.mp3
# List available voices
python scripts/elevenlabs_tts.py "" --list-voices
eleven_monolingual_v1 model by default (can be overridden)scripts/elevenlabs_tts.py - Main Python script for text-to-speech generation. Can be imported as a module or executed from command line.references/api_reference.md - Detailed API documentation including voice descriptions, parameter explanations, and usage examples..env and .env.example - Environment configuration for storing API credentials securely.Weekly Installs
94
Repository
GitHub Stars
71
First Seen
Jan 23, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
opencode75
gemini-cli74
codex72
cursor68
claude-code67
github-copilot64
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
66,200 周安装