← 返回
未分类 Key 中文

IMA AI Music & Voice Generator — Song, BGM, Background Soundtrack, Jingle, Lyrics, Beat Maker, Voiceover, Narration & Composition

AI music generator and voice generator with Suno sonic v5, DouBao BGM, and DouBao Song. Generate AI music, songs with lyrics, background music, soundtracks,...
AI音乐及语音生成器,集成Suno Sonic v5、DouBaoBGM、DouBao Song,支持生成AI音乐、带歌词的歌曲、背景音乐及配乐等。
dai-shuo
未分类 clawhub v1.0.0 1 版本 99798 Key: 需要
★ 0
Stars
📥 494
下载
💾 0
安装
1
版本
#latest

概述

IMA AI Music & Voice Generator

⚠️ MANDATORY: You MUST read("SKILL-DETAIL.md") (full file — do NOT pass limit parameter) before your first music generation call. It contains the full API payload structure, Suno parameters, error translation tables, reflection mechanism, and UX protocol that this summary omits. Skipping it causes parameter errors and poor user experience.

Model Reference (CRITICAL)

Use exact model_id. Do NOT infer from friendly names.

Namemodel_idCostBest For
--------------------------------
Suno sonic v5 🔥sonic25 ptsFull songs, lyrics, vocals, jingles, custom composition
DouBao BGMGenBGM30 ptsBackground music, soundtracks, ambient loops
DouBao SongGenSong30 ptsSong generation, vocal compositions

Model Selection

User intentModelWhy
-------------------------
Song with lyrics/vocalsSuno sonicFull custom mode: lyrics, vocal_gender, tags
背景音乐 / BGM / ambient / loopDouBao GenBGMBackground soundtrack specialist
Simple song / 歌曲DouBao GenSongQuick song generation
Jingle / ad music / 广告配乐Suno sonicGenre tags + style control
Beat / instrumental / 纯音乐Suno sonic + make_instrumental=trueBest instrumental quality
Voiceover / narration / 配音See note belowThis skill focuses on music; for TTS use ima-tts-ai

Suno is the default — most versatile AI music generator with full composition control.

Suno Key Parameters

ParameterDescriptionExample
---------------------------------
custom_modeEnable lyrics/vocals/tags controltrue
vocal_gendermale / female / mixed"female"
lyricsCustom lyrics text"[Verse 1]\nHello world..."
make_instrumentalForce instrumental, no vocalstrue
tagsGenre/style tags"lo-fi hip hop, chill"
negative_tagsExclude styles"heavy metal, screaming"
titleSong title"Summer Breeze"

Prompt tips for AI music composition:

  • Genre: "lo-fi hip hop", "orchestral cinematic", "upbeat pop", "jazz"
  • Tempo: "80 BPM", "fast tempo", "slow ballad"
  • Mood: "happy and energetic", "melancholic", "tense and dramatic"

Knowledge Base (if ima-knowledge-ai installed)

Read before generating: workflow-design.md (video+music coordination), model-selection.md (cost/quality).

Script Usage

# AI music generator — song with Suno (AI song generator, jingle, composition)
python3 {baseDir}/scripts/ima_voice_create.py \
  --api-key $IMA_API_KEY --task-type text_to_music \
  --model-id sonic --prompt "upbeat corporate jingle, 30 seconds" \
  --user-id {user_id} --output-json

# AI BGM generator — background soundtrack
python3 {baseDir}/scripts/ima_voice_create.py \
  --api-key $IMA_API_KEY --task-type text_to_music \
  --model-id GenBGM --prompt "calm ambient background music" \
  --user-id {user_id} --output-json

# List available music models
python3 {baseDir}/scripts/ima_voice_create.py \
  --api-key $IMA_API_KEY --task-type text_to_music --list-models

Sending Results to User

# ✅ CORRECT: Use remote URL for inline audio playback
message(action="send", media=audio_url, caption="✅ 音乐生成成功!\n• 模型:[Name]\n• 耗时:[X]s\n• 积分:[N pts]")

# Then send link for sharing
message(action="send", message=f"🔗 音频链接:\n{audio_url}")

UX Protocol (Brief)

  1. Acknowledge: Short reply ("好的!帮你生成音乐 🎵")
  2. Pre-gen: Model, time, cost via message tool
  3. Progress: Every 10-15s: "⏳ [P]%" (cap 95%)
  4. Success: Send media=url + link text
  5. Failure: Natural language + suggest alternatives
  6. Done: No further action

Generation times: DouBao BGM/Song: 10-25s · Suno: 20-45s

Never expose: script names, API endpoints, attribute_id, technical params.

User Preferences

Storage: ~/.openclaw/memory/ima_prefs.json

  • Save on explicit: "用Suno" / "默认用BGM" / "always use Suno"
  • Clear on: "推荐一个" / "自动选择"
  • Never save auto-selected models

Core Flow

  1. GET /open/v1/product/list?category=text_to_musicattribute_id, credit, form_config
  2. POST /open/v1/tasks/createtask_id
  3. POST /open/v1/tasks/detail → poll every 5s until resource_status==1

MANDATORY: Always query product list first. Missing attribute_id → task fails.

Suno note: model_version inside parameters.parameters must be sonic-v5, outer model_version is sonic.

Environment

Base URL: https://api.imastudio.com

Headers: Authorization: Bearer $IMA_API_KEY · x-app-source: ima_skills · x_app_language: en


⚠️ REMINDER: read("SKILL-DETAIL.md") (full file, no limit) is required before generating music. This summary covers model selection and routing — SKILL-DETAIL.md has complete API payloads, Suno custom_mode details, error handling, reflection mechanism, and UX protocol needed for correct execution.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 05:57 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

AI Content Brief, Script & Outline Generator — Research Assistant for Video & Image generation

dai-shuo
AI内容简介、脚本和大纲生成器,用于视频、图片和音频制作。作为AI研究助手,提供专业指导...
★ 1 📥 968

IMA AI Video Generator — Short & Promo Video, Text to Video, Image to Video Generation

dai-shuo
AI视频生成器,集成顶级模型:Wan 2.6、Kling O1/2.6、Google Veo 3.1、Sora 2 Pro、Pixverse V5.5、Hailuo 2.0/2.3、SeeDance 1.5 Pro、Vidu Q2。视频生成
★ 2 📥 1,749

IMA AI Creative Content Generator — Image, Video, Music, Ad, Marketing, Social Media Content Creation

dai-shuo
全能AI内容生成器,支持创意、营销和社交媒体内容创作。AI图像生成器,支持SeeDream 4.5、Midjourney、Nano Banana 2/P等。
★ 0 📥 671