rw-generate-audio

โดย runwayml

สร้างเสียงโดยใช้ Runway API ผ่านสคริปต์ที่รันได้ รองรับ TTS, เอฟเฟกต์เสียง, การแยกเสียง, การพากย์เสียง และการแปลงเสียง

npx skills add https://github.com/runwayml/skills --skill rw-generate-audio

Generate Audio

Generate audio directly using the Runway API. Supports text-to-speech, sound effects, voice isolation, dubbing, and speech-to-speech voice conversion.

IMPORTANT: Run scripts from the user's working directory so output files are saved where the user expects.

Usage

uv run scripts/generate_audio.py --type tts --text "Hello world" --filename "greeting.mp3" [--voice-id ID] [--api-key KEY]

Preflight

  1. command -v uv must succeed
  2. RUNWAYML_API_SECRET must be set, or pass --api-key

Audio Types

TypeDescriptionRequired Args
ttsText to speech--text
sfxSound effect generation--text
isolateIsolate voice from audio--audio-url
dubDub to another language--audio-url, --target-language
stsVoice conversion--audio-url

Parameters

ParamDescriptionDefault
--typeAudio type (required): tts, sfx, isolate, dub, sts--
--filenameOutput filename (required)--
--textText input (for tts and sfx)--
--audio-urlAudio URL or local path (for isolate, dub, sts)--
--voice-idVoice preset (for tts and sts, e.g. Maya, Noah, Leslie)Maya
--target-languageLanguage code (for dub, e.g. "es")--
--output-dirOutput directorycwd
--api-keyRunway API keyenv RUNWAYML_API_SECRET

Examples

Text-to-speech:

uv run scripts/generate_audio.py --type tts --text "Welcome to our product showcase" --filename "voiceover.mp3"

Sound effect:

uv run scripts/generate_audio.py --type sfx --text "Thunder rolling across a stormy sky" --filename "thunder.mp3"

Voice isolation:

uv run scripts/generate_audio.py --type isolate --audio-url "noisy-recording.mp3" --filename "clean-voice.mp3"

Speech-to-speech (voice conversion):

uv run scripts/generate_audio.py --type sts --audio-url "recording.mp3" --voice-id Noah --filename "converted.mp3"

Dubbing:

uv run scripts/generate_audio.py --type dub --audio-url "english-narration.mp3" --target-language es --filename "spanish-dub.mp3"

Output

  • The script downloads the result and saves it to the specified path
  • Script outputs the full path to the saved file

Skills เพิ่มเติมจาก runwayml

recipe-full-setup
runwayml
การตั้งค่า Runway API อย่างสมบูรณ์: ตรวจสอบความเข้ากันได้ กำหนดค่า API key และรวม endpoints การสร้าง
official
integrate-character-embed
runwayml
ช่วยให้ผู้ใช้ฝังการเรียกใช้ Runway Character avatar ในแอปพลิเคชัน React โดยใช้ @runwayml/avatars-react SDK
official
integrate-characters
runwayml
ช่วยผู้ใช้สร้าง Runway Characters (อวาตาร์ GWM-1) และรวมเซสชันสนทนาแบบเรียลไทม์เข้ากับแอปของพวกเขา
official
integrate-documents
runwayml
ช่วยให้ผู้ใช้เพิ่มเอกสารฐานความรู้ให้กับ Runway Characters สำหรับการสนทนาเฉพาะด้าน
official
integrate-image
runwayml
ช่วยให้ผู้ใช้รวม API การสร้างภาพของ Runway (ข้อความเป็นภาพพร้อมภาพอ้างอิง)
official
integrate-uploads
runwayml
ช่วยให้ผู้ใช้อัปโหลดไฟล์ในเครื่องไปยัง Runway เพื่อใช้เป็นอินพุตสำหรับโมเดลการสร้าง
official
integrate-video
runwayml
ช่วยผู้ใช้รวม API การสร้างวิดีโอของ Runway (ข้อความเป็นวิดีโอ, ภาพเป็นวิดีโอ, วิดีโอเป็นวิดีโอ)
official
runway-studio-skills
runwayml
สร้างวิดีโอ รูปภาพ และเสียงคุณภาพระดับสตูดิโอโดยใช้ Runway API คำสั่งทั้งหมดเป็นสคริปต์ Python แบบสแตนด์อโลนที่รันผ่าน uv run จากไดเรกทอรีรากของสกิล
official