تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

sfx-generator

بواسطة wells1137

CLI Utilities
—لم يُقيَّم بعد
تقييمك

موجز

Generates sound effects from a text description using the ElevenLabs API.

الوصف

ما الذي تفعله هذه المهارة

Generates a sound effect audio file from a text description using the ElevenLabs SFX API. Accepts optional duration and prompt influence parameters for finer control. Validates the output for quality and retries up to twice on failure.

Built-in quality validation and automatic retry logic reduces manual iteration compared to calling the ElevenLabs API directly.

متى تستخدمها

  • Generating laser or explosion sounds for a game prototype
  • Adding ambient sound effects to a podcast or video edit
  • Producing custom UI feedback sounds for an app
  • Creating foley audio for a short film or animation
  • Quickly testing how a described sound translates to audio

مثال على سير العمل

الإدخال

User asks: Generate a 3-second sound of a spaceship door opening with a pneumatic hiss

الوكيل
  1. 1

    Parse prompt text and duration_seconds: 3.5 from the request

  2. 2

    Prepare API payload with text, duration_seconds, and prompt_influence: 0.3

  3. 3

    Call ElevenLabs /v1/sound-generation endpoint

  4. 4

    Validate returned audio for silence or clipping artifacts

  5. 5

    Return sfx.mp3 with duration_ms and model metadata

الإخراج

spaceship_door_hiss.mp3, duration_ms: 3489, model: eleven_text_to_sound_v2

المتطلبات

  • ElevenLabs API key

التثبيت

clawhub install wells1137/sfx-generator

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط