SenseAudio AI Rapper
Use this skill for SenseAudio music-generation tasks focused on rap, hip-hop, and other vocal-song creation requests.
Read First
Load the reference only when you need exact endpoint, parameter, polling, or response-shape details.
When To Use
Use this skill when the user wants to:
- - generate rap or hip-hop lyrics from a prompt,
- turn lyrics into a full song with vocals,
- control song style, title, vocal gender, or instrumental mode,
- poll async lyric or song generation tasks,
- debug errors around SenseAudio music-generation requests.
Default Workflow
- 1. Confirm the target output:
- - lyrics only,
- full song from user-provided lyrics,
- or full song with platform-generated lyrics.
- 2. Start with the minimal valid request:
- - lyrics generation requires
prompt and provider: sensesong. - song generation requires
model: sensesong.
- 3. Treat both pipelines as potentially asynchronous:
- - if create returns
task_id, poll the matching pending endpoint, - wait for
status == SUCCESS before reading payload data, - surface
FAILED clearly instead of assuming empty data.
- 4. Add creative controls only when needed:
- -
lyrics, title, style, style_weight, negative_tags, vocal_gender, instrumental.
- 5. Return production-ready output:
- - one minimal
curl example, - one requested-language example,
- polling logic,
- and safe response parsing for
audio_url, cover_url, lyrics, and duration.
Rap-Specific Guidance
- - For rap requests, make the prompt explicit about theme, tone, pacing, and era, such as trap, boom bap, drill, conscious rap, or melodic rap.
- If the user already has bars or a chorus, skip lyric generation and call song creation directly with
lyrics. - Use
style for positive steering and negative_tags for exclusions. - Use
vocal_gender: "m" or "f" only when the user asks or when matching a clear creative brief. - Use
instrumental: true only for beat-only output; otherwise omit it.
Implementation Rules
- - Keep API keys in environment variables; never hardcode secrets.
- Prefer
curl first for reproducibility, then provide Python or JavaScript if useful. - Do not invent extra request fields or undocumented endpoints.
- Do not assume lyric tags beyond what the docs examples show; if structure syntax matters, mirror the documented examples closely.
- When the docs show semicolon-separated section markers in lyrics, preserve that formatting unless the user provides a different valid lyric format.
Response Parsing Rules
- - Lyrics polling success shape:
response.data[0].text and optional response.data[0].title. - Song polling success shape:
response.data[0].audio_url, cover_url, duration, id, lyrics, title. - Guard every array/object access because
response or data may be absent before success.
Output Checklist
When producing an answer with this skill, include:
- 1. which endpoint(s) are used,
- the minimal valid request body,
- whether polling is required,
- the final fields the caller should read,
- and any rap-specific prompt/style suggestions relevant to the user’s brief.
SenseAudio AI Rapper
使用此技能处理专注于说唱、嘻哈及其他声乐歌曲创作请求的SenseAudio音乐生成任务。
先阅读
仅在需要精确端点、参数、轮询或响应结构细节时加载该参考文件。
使用时机
当用户希望实现以下目标时使用此技能:
- - 根据提示生成说唱或嘻哈歌词,
- 将歌词转化为带人声的完整歌曲,
- 控制歌曲风格、标题、人声性别或器乐模式,
- 轮询异步歌词或歌曲生成任务,
- 调试与SenseAudio音乐生成请求相关的错误。
默认工作流程
- 1. 确认目标输出类型:
- - 仅歌词,
- 基于用户提供的歌词生成完整歌曲,
- 或使用平台生成的歌词生成完整歌曲。
- 2. 从最小有效请求开始:
- - 歌词生成需要prompt和provider: sensesong。
- 歌曲生成需要model: sensesong。
- 3. 将两个流程均视为可能异步:
- - 如果创建请求返回task_id,则轮询对应的pending端点,
- 等待status == SUCCESS后再读取负载数据,
- 明确显示FAILED状态,而非假设数据为空。
- 4. 仅在需要时添加创意控制参数:
- - lyrics、title、style、styleweight、negativetags、vocal_gender、instrumental。
- 5. 返回可直接使用的输出:
- - 一个最小化的curl示例,
- 一个目标语言示例,
- 轮询逻辑,
- 以及针对audiourl、coverurl、lyrics和duration的安全响应解析。
说唱特定指南
- - 对于说唱请求,需在提示中明确主题、语气、节奏和时代风格,例如陷阱、布姆巴普、钻头、意识说唱或旋律说唱。
- 如果用户已有歌词段落或副歌,则跳过歌词生成,直接使用lyrics调用歌曲创建。
- 使用style进行正向引导,使用negativetags进行排除。
- 仅在用户要求或匹配明确的创意简报时使用vocalgender: m或f。
- 仅对纯节拍输出使用instrumental: true;否则省略该参数。
实现规则
- - 将API密钥保存在环境变量中;切勿硬编码密钥。
- 优先使用curl以确保可复现性,必要时提供Python或JavaScript示例。
- 不要发明额外的请求字段或未记录的端点。
- 不要假设文档示例之外的歌词标签;如果结构语法重要,请严格参照文档示例。
- 当文档显示歌词中使用分号分隔的段落标记时,保留该格式,除非用户提供了其他有效的歌词格式。
响应解析规则
- - 歌词轮询成功结构:response.data[0].text和可选的response.data[0].title。
- 歌曲轮询成功结构:response.data[0].audiourl、coverurl、duration、id、lyrics、title。
- 保护每个数组/对象访问,因为在成功之前response或data可能不存在。
输出检查清单
使用此技能生成答案时,需包含:
- 1. 使用的端点,
- 最小有效请求体,
- 是否需要轮询,
- 调用方应读取的最终字段,
- 以及与用户需求相关的任何说唱特定提示/风格建议。