mcpField
S
speech-generator

speech-generator

github.com/aviz85Creative & media5045 installsUpdated 16w ago
Repository

About speech-generator

speech-generator is a skill for creating speech audio with ElevenLabs TTS. It is intended for creators turning text into audio, with controls for voice and speech settings plus guidance for natural spoken Hebrew prompts.

Key features

  1. 01Generate speech with ElevenLabs TTS
  2. 02Accept text or file input
  3. 03Set voice ID and output path
  4. 04Adjust speed, stability, and similarity
  5. 05Guidance for spoken Hebrew prompts

Use cases

  1. 01Create MP3 audio from Hebrew text
  2. 02Generate speech audio from a file

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/aviz85/claude-skills-library --skill speech-generator

After installing, type/speech-generatorin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

SETUP.md
scripts/
.env.example
generate_speech.ts
package.json
tsconfig.json

Details

From the project README

Speech Generator

First time? If setup_complete: false above, run ./SETUP.md first, then set setup_complete: true.

Generate speech audio using ElevenLabs TTS.

Voice ID

Configure your voice ID from ElevenLabs:

YOUR_VOICE_ID

Get voice IDs from ElevenLabs - you can use built-in voices or clone your own.

Prompt Guidelines (Hebrew)

Write prompts as natural spoken Hebrew. Use square brackets [...] for speech directions.

Direction Examples
[נשימה עמוקה] אוקיי, אז בואו נדבר על זה...
[צחוק קל] זה ממש מצחיק שאתה אומר את זה
[בהתלהבות] וואו! זה בדיוק מה שחיכיתי לו!
[ברצינות] עכשיו, תקשיבו טוב...
[בעצב] אני לא יודע מה להגיד...
[בשקט] זה סוד, אבל...
[מהר] צריך לרוץ עכשיו, אין זמן!
[לאט ובבירור] חשוב. מאוד. להקשיב.
[שאלה] אתה בטוח שזה מה שאתה רוצה?
[הפתעה] רגע, מה?!
Natural Speech Patterns

Add filler words and pauses for natural flow:

  • אממ...
  • אהה...
  • כאילו...
  • נו...
  • יאללה...
  • בקיצור...
  • ... (pause)
Example Prompt
[בהתלהבות] היי! מה קורה?
אממ... אז רציתי לספר לכם משהו מטורף שקרה לי היום.
[נשימה] אז הלכתי לקפה, וואלה, פתאום רואה את... [בשקט] אתה לא תאמין למי.
[צחוק] כן, בדיוק מי שחשבת!

Commands

cd ~/.claude/skills/speech-generator/scripts

# Generate speech
npx ts-node generate_speech.ts \
  -t "[בהתלהבות] היי! מה קורה?" \
  -o /path/to/output.mp3

# From file
npx ts-node generate_speech.ts \
  -f /path/to/script.txt \
  -o /path/to/output.mp3

# List voices
npx ts-node generate_speech.ts --list-voices

Options

OptionShortDefault
--text-tText to speak
--file-fRead from file
--output-oOutput path (required)
--voice-vVoice ID
--speed1.0
--stability0.5
--similarity0.75

Comments

Markdown supported