rw-generate-audio
作成者: runwayml
Runway APIを使用して、実行可能なスクリプト経由で音声を生成します。TTS、効果音、音声分離、吹き替え、音声変換に対応しています。
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
runwaymlのその他のスキル
recipe-full-setup
runwayml
Runway APIの完全セットアップ:互換性の確認、APIキーの設定、生成エンドポイントの統合
official
integrate-character-embed
runwayml
ユーザーが@runwayml/avatars-react SDKを使用してReactアプリにRunway Characterアバター呼び出しを埋め込むのを支援します
official
integrate-characters
runwayml
ユーザーがRunway Characters(GWM-1アバター)を作成し、リアルタイムの会話セッションをアプリに統合するのを支援します
official
integrate-documents
runwayml
ユーザーがRunway Charactersにナレッジベースドキュメントを追加し、ドメイン固有の会話を行えるように支援します。
official
integrate-image
runwayml
Help users integrate Runway image generation APIs (text-to-image with reference images)
official
integrate-uploads
runwayml
ユーザーがローカルファイルをRunwayにアップロードし、生成モデルの入力として使用できるように支援します。
official
integrate-video
runwayml
ユーザーがRunway動画生成API(テキストから動画、画像から動画、動画から動画)を統合するのを支援します
official
runway-studio-skills
runwayml
Runway APIを使用して、スタジオ品質の動画、画像、オーディオを生成します。すべてのコマンドは、スキルのルートディレクトリからuv runで実行されるスタンドアロンのPythonスクリプトです。
official