mcpField
R
rw-generate-audio

rw-generate-audio

github.com/runwaymlCreative & media74309 installsUpdated 2d ago
Repository

About rw-generate-audio

This skill uses the Runway API to generate and process audio for creators working with speech, sound effects, or audio conversion. A command-line script handles tasks such as text-to-speech, dubbing, and voice isolation, then saves the output to a file.

Key features

  1. 01Generate speech from text and sound effects
  2. 02Isolate voices from audio
  3. 03Dub audio into a selected language
  4. 04Convert speech and save output files

Use cases

  1. 01Create narration for a product showcase
  2. 02Make sound effects for a video or scene
  3. 03Clean voice from a noisy recording
  4. 04Dub narration into another language

Install

Copy the command and run it in a terminal.

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

After installing, type/rw-generate-audioin Claude Code to confirm it loaded.

Details

From the project README

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

Comments

Markdown supported