mcpField
A
ai-music-generation

ai-music-generation

github.com/inference-sh创意与媒体7891.1k 次安装2 周前更新
代码仓库

关于 ai-music-generation

通过 inference.sh CLI(belt)调用音乐生成应用的技能,面向需要制作歌曲或配乐的内容创作者。可按提示词生成不同风格的器乐曲,也可使用支持人声的应用。

主要功能

  1. 01通过提示词生成音乐
  2. 02支持器乐与人声歌曲
  3. 03提供多种音乐生成模型
  4. 04按流派、情绪和乐器编写提示词

适用场景

  1. 01为视频制作背景音乐
  2. 02创作播客片头曲
  3. 03生成游戏配乐
  4. 04制作社交媒体音乐内容

安装

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

$npx skills add https://github.com/inference-sh/skills --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