sound-fx
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesesound-fx
sound-fx
Generate any sound effect from a text description — footsteps, explosions, cartoon boings, ambient rain, or whatever you can imagine.
根据文本描述生成任意音效——脚步声、爆炸声、卡通弹跳声、环境雨声,或是任何你能想象到的声音。
Triggers
触发场景
- sound effect / sfx / foley
- generate sound / make a sound / create audio
- ambient sound / background noise
- what does X sound like / make the sound of X
- 音效 / 声音 / 音频效果
- sound effect / sfx / foley
- generate sound / make a sound / create audio
- ambient sound / background noise
- what does X sound like / make the sound of X
- 音效 / 声音 / 音频效果
Quick Start
快速开始
bash
undefinedbash
undefinedAnimals
Animals
python3 skills/sound-fx/scripts/sfx.py "a cat purring contentedly, deep rumbling vibration" -d 8
python3 skills/sound-fx/scripts/sfx.py "dog sneezing three times in a row" -d 3
python3 skills/sound-fx/scripts/sfx.py "dog eating food really fast, chomping and gulping" -d 4
python3 skills/sound-fx/scripts/sfx.py "a cat purring contentedly, deep rumbling vibration" -d 8
python3 skills/sound-fx/scripts/sfx.py "dog sneezing three times in a row" -d 3
python3 skills/sound-fx/scripts/sfx.py "dog eating food really fast, chomping and gulping" -d 4
Funny
Funny
python3 skills/sound-fx/scripts/sfx.py "cartoon character getting spanked, exaggerated squeaky yelp" -d 2
python3 skills/sound-fx/scripts/sfx.py "someone sitting on a whoopee cushion mid-meeting" -d 2
python3 skills/sound-fx/scripts/sfx.py "cartoon character getting spanked, exaggerated squeaky yelp" -d 2
python3 skills/sound-fx/scripts/sfx.py "someone sitting on a whoopee cushion mid-meeting" -d 2
Ambient (save to file)
Ambient (save to file)
python3 skills/sound-fx/scripts/sfx.py "heavy rain on a tin roof" -d 15 -o rain.wav
python3 skills/sound-fx/scripts/sfx.py "campfire crackling at night, crickets in background" -d 15 -o campfire.wav
undefinedpython3 skills/sound-fx/scripts/sfx.py "heavy rain on a tin roof" -d 15 -o rain.wav
python3 skills/sound-fx/scripts/sfx.py "campfire crackling at night, crickets in background" -d 15 -o campfire.wav
undefinedArguments
参数说明
| Argument | Default | Description |
|---|---|---|
| required | Text description of the sound to generate |
| auto | Length in seconds (1–30). Omit to let the model decide. |
| | Output format: |
| | Path to save the generated audio |
| from env/config | Noiz API key (overrides stored key) |
| 参数 | 默认值 | 描述 |
|---|---|---|
| 必填 | 要生成的声音的文本描述 |
| 自动 | 时长(秒,范围1–30)。省略则由模型自动决定。 |
| | 输出格式: |
| | 生成音频的保存路径 |
| 来自环境变量/配置文件 | Noiz API密钥(会覆盖已存储的密钥) |
Configuration
配置
bash
undefinedbash
undefinedSave your API key once
一次性保存API密钥
python3 skills/sound-fx/scripts/sfx.py config --set-api-key YOUR_KEY
python3 skills/sound-fx/scripts/sfx.py config --set-api-key YOUR_KEY
Or set via environment variable
或通过环境变量设置
export NOIZ_API_KEY=YOUR_KEY
Get your API key at [developers.noiz.ai](https://developers.noiz.ai/api-keys).export NOIZ_API_KEY=YOUR_KEY
请访问[developers.noiz.ai](https://developers.noiz.ai/api-keys)获取您的API密钥。Fun Example Prompts
趣味示例提示词
🐾 Animals
🐾 动物
| Prompt | Suggested Duration |
|---|---|
| 8s |
| 3s |
| 2s |
| 3s |
| 4s |
| 5s |
| 4s |
| 6s |
| 3s |
| 8s |
| 提示词 | 建议时长 |
|---|---|
| 8s |
| 3s |
| 2s |
| 3s |
| 4s |
| 5s |
| 4s |
| 6s |
| 3s |
| 8s |
😂 Funny & Expressive
😂 趣味与表现力
| Prompt | Suggested Duration |
|---|---|
| 2s |
| 3s |
| 2s |
| 5s |
| 3s |
| 3s |
| 2s |
| 5s |
| 3s |
| 2s |
| 5s |
| 提示词 | 建议时长 |
|---|---|
| 2s |
| 3s |
| 2s |
| 5s |
| 3s |
| 3s |
| 2s |
| 5s |
| 3s |
| 2s |
| 5s |
🌍 Ambient & Atmosphere
🌍 环境与氛围
| Prompt | Suggested Duration |
|---|---|
| 15s |
| 15s |
| 10s |
| 15s |
| 15s |
| 提示词 | 建议时长 |
|---|---|
| 15s |
| 15s |
| 10s |
| 15s |
| 15s |
🎮 Action & Sci-Fi
🎮 动作与科幻
| Prompt | Suggested Duration |
|---|---|
| 2s |
| 5s |
| 2s |
| 3s |
| 提示词 | 建议时长 |
|---|---|
| 2s |
| 5s |
| 2s |
| 3s |
Output
输出
On success, the audio file is saved to the output path and the URL is printed:
✓ Saved to output.wav (3.2s, 282 KB)
URL: https://storage.googleapis.com/...生成成功后,音频文件将保存到指定输出路径,并打印对应的URL:
✓ Saved to output.wav (3.2s, 282 KB)
URL: https://storage.googleapis.com/...Third-Party Integration
第三方集成
To send generated sound effects to Discord, Telegram, Feishu, or mix them into videos with ffmpeg, see ref_3rd_party.md.
如需将生成的音效发送至Discord、Telegram、飞书,或使用ffmpeg将其混入视频,请查看ref_3rd_party.md。
Requirements
要求
- Python 3.6+
- package:
requestspip install requests - Noiz API key from developers.noiz.ai
- Python 3.6及以上版本
- 包:
requestspip install requests - 从developers.noiz.ai获取Noiz API密钥
Security & Data Disclosure
安全与数据披露
- API key: Stored in (permissions
~/.config/noiz/api_key) or via0600env variable.NOIZ_API_KEY - Network: The text prompt is sent to for generation. No other data is transmitted.
https://noiz.ai/v1/text-to-sound - Output: Generated audio is downloaded from a Noiz GCS URL and saved locally.
- API密钥:存储在(权限为
~/.config/noiz/api_key)中,或通过0600环境变量设置。NOIZ_API_KEY - 网络传输:文本提示词会发送至进行生成,无其他数据传输。
https://noiz.ai/v1/text-to-sound - 输出文件:生成的音频将从Noiz GCS URL下载并保存到本地。