mcpField
A
ai-music-generation

ai-music-generation

github.com/magentosh创意与媒体442 次安装12 周前更新
代码仓库

关于 ai-music-generation

通过 inference.sh 的 belt CLI 生成音乐和歌曲的技能,介绍多种模型选项及提示词方法,可制作纯音乐、带人声歌曲和媒体配乐。

主要功能

  1. 01生成纯音乐
  2. 02生成带人声歌曲
  3. 03提供多种模型选项
  4. 04按流派、情绪和乐器编写提示词
  5. 05制作播客、视频和游戏音乐

适用场景

  1. 01制作播客开场音乐
  2. 02生成视频背景音乐
  3. 03制作游戏配乐
  4. 04根据提供的歌词生成歌曲

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/magentosh/superpowers --skill ai-music-generation

安装后在 Claude Code 中输入/ai-music-generation确认已加载。

详细介绍

安装 belt CLI 技能: npx skills add belt-sh/cli

AI 音乐生成

通过 inference.sh CLI 生成音乐和歌曲。

AI 音乐生成

快速开始

需要 inference.sh CLI(belt)。安装说明

belt login

# Generate a song
belt app run infsh/diffrythm --input '{"prompt": "upbeat electronic dance track"}'

可用模型

模型应用 ID最适合
ElevenLabs Musicelevenlabs/music最长 10 分钟,含商业许可
Diffrythminfsh/diffrythm快速生成歌曲
Tencent Songinfsh/tencent-song-generation带人声的完整歌曲

浏览音频应用

belt app list --category audio

示例

纯音乐曲目
belt app run infsh/diffrythm --input '{
  "prompt": "cinematic orchestral soundtrack, epic and dramatic"
}'
带人声的歌曲
belt app sample infsh/tencent-song-generation --save input.json

# Edit input.json:
# {
#   "prompt": "pop song about summer love",
#   "lyrics": "Walking on the beach with you..."
# }

belt app run infsh/tencent-song-generation --input input.json
视频背景音乐
belt app run infsh/diffrythm --input '{
  "prompt": "calm lo-fi hip hop beat, study music, relaxing"
}'
播客片头
belt app run infsh/diffrythm --input '{
  "prompt": "short podcast intro jingle, professional, tech themed, 10 seconds"
}'
游戏原声
belt app run infsh/diffrythm --input '{
  "prompt": "retro 8-bit video game music, adventure theme, chiptune"
}'

提示词技巧

流派关键词:流行、摇滚、电子、爵士、古典、嘻哈、lo-fi、氛围音乐、管弦乐

情绪关键词:快乐、悲伤、充满活力、平静、戏剧性、史诗感、神秘、振奋人心

乐器关键词:钢琴、吉他、合成器、鼓、弦乐、铜管乐、合唱团

结构关键词:前奏、主歌、副歌、桥段、尾奏、循环

使用场景

  • 社交媒体:视频背景音乐
  • 播客:片头/片尾短曲
  • 游戏:原声音乐和音效
  • 视频:背景配乐
  • 广告:商业广告短曲
  • 内容创作:免版税音乐

相关技能

# ElevenLabs music (up to 10 min, commercial license)
npx skills add inference-sh/skills@elevenlabs-music

# ElevenLabs sound effects (combine with music)
npx skills add inference-sh/skills@elevenlabs-sound-effects

# Full platform skill (all apps)
npx skills add inference-sh/skills@infsh-cli

# Text-to-speech
npx skills add inference-sh/skills@text-to-speech

# Video generation (add music to videos)
npx skills add inference-sh/skills@ai-video-generation

# Speech-to-text
npx skills add inference-sh/skills@speech-to-text

浏览所有应用:belt app list

文档

评论

支持 Markdown