rw-generate-audio
von runwayml
Generieren Sie Audio mithilfe der Runway-API über ausführbare Skripte. Unterstützt TTS, Soundeffekte, Sprachisolierung, Synchronisation und Sprachkonvertierung.
npx skills add https://github.com/runwayml/skills --skill rw-generate-audioGenerate 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
command -v uvmust succeedRUNWAYML_API_SECRETmust be set, or pass--api-key
Audio Types
| Type | Description | Required Args |
|---|---|---|
tts | Text to speech | --text |
sfx | Sound effect generation | --text |
isolate | Isolate voice from audio | --audio-url |
dub | Dub to another language | --audio-url, --target-language |
sts | Voice conversion | --audio-url |
Parameters
| Param | Description | Default |
|---|---|---|
--type | Audio type (required): tts, sfx, isolate, dub, sts | -- |
--filename | Output filename (required) | -- |
--text | Text input (for tts and sfx) | -- |
--audio-url | Audio URL or local path (for isolate, dub, sts) | -- |
--voice-id | Voice preset (for tts and sts, e.g. Maya, Noah, Leslie) | Maya |
--target-language | Language code (for dub, e.g. "es") | -- |
--output-dir | Output directory | cwd |
--api-key | Runway API key | env 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
Mehr Skills von runwayml
recipe-full-setup
runwayml
Vollständige Runway-API-Einrichtung: Kompatibilität prüfen, API-Schlüssel konfigurieren und Generierungsendpunkte integrieren
official
integrate-character-embed
runwayml
Hilft Benutzern, Runway Character-Avatar-Aufrufe in React-Apps mit dem @runwayml/avatars-react SDK einzubetten.
official
integrate-characters
runwayml
Hilfe für Benutzer bei der Erstellung von Runway Characters (GWM-1-Avataren) und der Integration von Echtzeit-Konversationssitzungen in ihre Apps
official
integrate-documents
runwayml
Hilft Benutzern, Wissensdatenbank-Dokumente zu Runway Characters hinzuzufügen, um domänenspezifische Gespräche zu führen.
official
integrate-image
runwayml
Hilft Benutzern bei der Integration von Runway-Bildgenerierungs-APIs (Text-zu-Bild mit Referenzbildern)
official
integrate-uploads
runwayml
Hilft Benutzern, lokale Dateien in Runway hochzuladen, um sie als Eingaben für Generierungsmodelle zu verwenden.
official
integrate-video
runwayml
Hilft Benutzern bei der Integration von Runway-Videogenerierungs-APIs (Text-zu-Video, Bild-zu-Video, Video-zu-Video)
official
runway-studio-skills
runwayml
Erstellen Sie Studioqualität-Videos, Bilder und Audio mithilfe der Runway-API. Alle Befehle sind eigenständige Python-Skripte, die über uv run aus dem Skill-Stammverzeichnis ausgeführt werden.
official