SenseAudio Jingle Forge
Turn brand information into a ready-to-use audio logo. A jingle is not a song — it's short (5–15s), memorable, and built around the brand name. This skill constrains the music generation API to that specific format.
Step 1: Collect Brand Info
Ask the user for:
| Field | Example |
|---|
| 品牌名 | "极光科技" |
| 行业/产品 |
"智能家居" |
| 调性关键词 | "科技感、温暖、未来" |
| 使用场景 | 开机音效 / 广告片尾 / 短视频片头 / APP 启动 |
| 人声偏好 | 有人声(男/女)/ 纯音乐 |
If the user provides partial info, infer reasonable defaults and proceed.
Step 2: Generate Jingle Lyrics
Jingle lyrics have strict rules — explain this to the user if they ask why the lyrics look short:
- - Total length: ≤ 20 characters
- Must contain the brand name
- Last line ends with the brand name
- Should rhyme or have a strong rhythm
- No verse/chorus structure — just 1–2 punchy lines
Build the lyrics prompt with these constraints baked in:
CODEBLOCK0
CODEBLOCK1
If async (task_id present), poll:
CODEBLOCK2
If sync, read directly: INLINECODE1
Show the lyrics to the user and ask for approval or edits before composing.
Step 3: Match Style to Brand Tone
Map tone keywords to music style automatically:
| Tone keyword | Style suggestion |
|---|
| 科技 / 未来 / 数字 | electronic, synthesizer, futuristic |
| 温暖 / 家庭 / 亲切 |
acoustic guitar, piano, warm |
| 高端 / 奢华 / 精致 | strings, jazz, orchestral |
| 活力 / 年轻 / 运动 | pop, upbeat, energetic |
| 自然 / 健康 / 清新 | acoustic, folk, light |
| 专业 / 商务 / 信任 | corporate, clean, minimal |
| 可爱 / 儿童 / 萌 | playful, xylophone, cheerful |
Combine multiple keywords: "科技感、温暖" → INLINECODE2
Also add "short jingle, 5-15 seconds, brand audio logo" to the style to constrain length.
Step 4: Generate Two Versions in Parallel
Always produce two versions — users almost always need both:
Version A — 带唱版 (with vocals):
CODEBLOCK3
Version B — 纯音乐版 (instrumental):
CODEBLOCK4
Poll both tasks (check every 5s, may take 30–120s):
CODEBLOCK5
Step 5: TTS Brand Name Read
Generate a clean spoken version of the brand name — useful for overlaying on the instrumental:
CODEBLOCK6
Pick voice based on tone: 高端/专业 → male_0004_a; 温暖/亲切 → female_0006_a; 活力/年轻 → INLINECODE6
Output
Present all three deliverables:
CODEBLOCK7
SenseAudio Jingle Forge
将品牌信息转化为可直接使用的音频标志。Jingle不是一首歌——它短小(5-15秒)、令人难忘,并围绕品牌名称构建。此技能将音乐生成API约束为该特定格式。
第一步:收集品牌信息
询问用户:
智能家居 |
| 调性关键词 | 科技感、温暖、未来 |
| 使用场景 | 开机音效 / 广告片尾 / 短视频片头 / APP 启动 |
| 人声偏好 | 有人声(男/女)/ 纯音乐 |
如果用户提供的信息不完整,推断合理的默认值并继续。
第二步:生成Jingle歌词
Jingle歌词有严格规则——如果用户问为什么歌词看起来很短,请向他们解释:
- - 总长度:≤ 20个字符
- 必须包含品牌名称
- 最后一行以品牌名称结尾
- 应押韵或具有强烈的节奏感
- 没有主歌/副歌结构——只有1-2句有力的短句
构建包含这些约束的歌词提示:
为品牌<品牌名>创作一段 Jingle 歌词。
要求:
- - 总字数不超过20字
- 必须包含品牌名<品牌名>
- 最后一句以品牌名结尾
- 押韵,朗朗上口
- 调性:<调性关键词>
- 场景:<使用场景>
bash
LYRICS_RESP=$(curl -s -X POST https://api.senseaudio.cn/v1/song/lyrics/create \
-H Authorization: Bearer $SENSEAUDIOAPIKEY \
-H Content-Type: application/json \
-d {\prompt\: \\, \provider\: \sensesong\})
TASKID=$(echo $LYRICSRESP | jq -r .task_id // empty)
如果是异步(存在task_id),轮询:
bash
while true; do
POLL=$(curl -s https://api.senseaudio.cn/v1/song/lyrics/pending/$TASK_ID \
-H Authorization: Bearer $SENSEAUDIOAPIKEY)
STATUS=$(echo $POLL | jq -r .status)
{ [ $STATUS = SUCCESS ] || [ $STATUS = FAILED ]; } && break
sleep 3
done
LYRICS=$(echo $POLL | jq -r .response.data[0].text)
如果是同步,直接读取:LYRICS=$(echo $LYRICS_RESP | jq -r .data[0].text)
在作曲前向用户展示歌词并请求批准或修改。
第三步:将风格匹配到品牌调性
自动将调性关键词映射到音乐风格:
| 调性关键词 | 风格建议 |
|---|
| 科技 / 未来 / 数字 | electronic, synthesizer, futuristic |
| 温暖 / 家庭 / 亲切 |
acoustic guitar, piano, warm |
| 高端 / 奢华 / 精致 | strings, jazz, orchestral |
| 活力 / 年轻 / 运动 | pop, upbeat, energetic |
| 自然 / 健康 / 清新 | acoustic, folk, light |
| 专业 / 商务 / 信任 | corporate, clean, minimal |
| 可爱 / 儿童 / 萌 | playful, xylophone, cheerful |
组合多个关键词:科技感、温暖 → electronic piano, warm synth, modern
同时添加short jingle, 5-15 seconds, brand audio logo到风格中以约束时长。
第四步:并行生成两个版本
始终生成两个版本——用户几乎总是需要两者:
版本A — 带唱版 (with vocals):
bash
SONG_A=$(curl -s -X POST https://api.senseaudio.cn/v1/song/music/create \
-H Authorization: Bearer $SENSEAUDIOAPIKEY \
-H Content-Type: application/json \
-d {
\model\: \sensesong\,
\lyrics\: \\,
\title\: \<品牌名> Jingle\,
\vocal_gender\: \\,
\style\: \