Token导航 LogoToken导航TokenDH.com
音频生成需要联网github未标认证来源可访问许可证需确认审计通过

venice-audio-music威尼斯音乐

Agent Skill

用于辅助音频、音乐、语音转写、语音合成或声音素材处理。它适合让 Agent 生成配乐说明、整理音频流程、调用语音工具或处理播客和视频配音素材。使用时需要确认输入音频来源、输出格式、时长和模型限制;涉及人声克隆、版权音乐或公开发布时,应先核对授权和合规边界。

总安装

412

周安装

17

GitHub Stars

35

下载量

135
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:venice-audio-music(威尼斯音乐)
来源仓库:https://github.com/veniceai/skills
仓库路径:skills/venice-audio-music
安装命令:
npx skills add https://github.com/veniceai/skills --skill venice-audio-music
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/veniceai/skills --skill venice-audio-music

简介

辅助音频、音乐、语音转写和声音素材处理。

  • 适用于让 Agent 生成配乐说明、整理音频流程或处理播客和视频配音素材的场景。
  • 使用时需确认输入音频来源、输出格式、时长和模型限制。
  • 涉及人声克隆、版权音乐或公开发布时,应先核对授权和合规边界。
  • venice-audio-music 属于音频生成类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Venice Music / Async Audio

Music (and long-form voice) generation is asynchronous. The flow is:

POST /api/v1/audio/quote      → price in USD
POST /api/v1/audio/queue      → { queue_id }      (funds reserved)
POST /api/v1/audio/retrieve   → status or binary audio
POST /api/v1/audio/complete   → finalize & delete media

For short text-to-speech, use the synchronous venice-audio-speech endpoint instead.

Use when

  • You need songs, jingles, score, soundscape, or long narration.
  • The selected model uses duration-based or character-based pricing and must be priced before submission.
  • The expected generation time is long enough (> 20 s) that sync call would time out.

Lifecycle

1. POST /audio/quote — price it first

curl https://api.venice.ai/api/v1/audio/quote \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "elevenlabs-music",
    "duration_seconds": 60
  }'

Response: {"quote": 0.48} (USD).

FieldNotes
modelRequired. Music/audio model from GET /models?type=music.
duration_secondsInteger or numeric string. Only if the model reports duration metadata.
character_countRequired for models with pricing.per_thousand_characters (long narration).

2. POST /audio/queue — enqueue

curl https://api.venice.ai/api/v1/audio/queue \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "elevenlabs-music",
    "prompt": "Uplifting indie-folk acoustic track, 120 BPM, major key.",
    "lyrics_prompt": "Verse 1: Walking through the city lights...\nChorus: We are the dreamers...",
    "duration_seconds": 60,
    "voice": "Aria",
    "language_code": "en",
    "speed": 1.0,
    "force_instrumental": false,
    "lyrics_optimizer": false
  }'

Response: {"model": "...", "queue_id": "uuid"}.

FieldNotes
modelRequired.
promptRequired. Describe genre, mood, tempo, instruments. Length caps in /models.
lyrics_promptLyrics. Required when lyrics_required=true, rejected when supports_lyrics=false.
duration_secondsInteger or string. Model-dependent.
force_instrumentalOnly when supports_force_instrumental=true.
lyrics_optimizerAuto-generate lyrics from prompt. Requires supports_lyrics_optimizer=true. lyrics_prompt must be empty.
voiceFor voice-enabled models. See voices + default_voice in /models.
language_codeISO 639-1. Requires supports_language_code=true.
speedRequires supports_speed=true. Use model's min_speed/max_speed.

3. POST /audio/retrieve — poll status / download

curl https://api.venice.ai/api/v1/audio/retrieve \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"elevenlabs-music","queue_id":"..."}' \
  --output track.mp3
  • If still processing: JSON {"status":"PROCESSING","average_execution_time":...,"execution_duration":...}.
  • If done: binary audio body (audio/mpeg or similar). Save the bytes.
  • Set delete_media_on_completion: true to skip step 4.

Poll every 2–5 s; use average_execution_time (ms, P80) as a guideline for your first poll delay.

4. POST /audio/complete — cleanup

curl https://api.venice.ai/api/v1/audio/complete \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"elevenlabs-music","queue_id":"..."}'

Removes the media from Venice storage after you've downloaded it. Required unless you used delete_media_on_completion: true on retrieve.

Full loop (TypeScript)

const base = 'https://api.venice.ai/api/v1'
const headers = {
  Authorization: `Bearer ${process.env.VENICE_API_KEY}`,
  'Content-Type': 'application/json',
}

async function generateTrack() {
  // 1. Quote
  const quote = await fetch(`${base}/audio/quote`, {
    method: 'POST', headers,
    body: JSON.stringify({ model: 'elevenlabs-music', duration_seconds: 60 }),
  }).then(r => r.json())
  console.log('price:', quote.quote)

  // 2. Queue
  const { queue_id, model } = await fetch(`${base}/audio/queue`, {
    method: 'POST', headers,
    body: JSON.stringify({
      model: 'elevenlabs-music',
      prompt: 'Uplifting indie-folk acoustic track, 120 BPM.',
      duration_seconds: 60,
      force_instrumental: true,
    }),
  }).then(r => r.json())

  // 3. Poll
  while (true) {
    const res = await fetch(`${base}/audio/retrieve`, {
      method: 'POST', headers,
      body: JSON.stringify({ model, queue_id }),
    })
    const ct = res.headers.get('content-type') ?? ''
    if (ct.startsWith('audio/')) {
      const buf = Buffer.from(await res.arrayBuffer())
      await fs.writeFile('track.mp3', buf)
      break
    }
    const { status } = await res.json()
    if (status !== 'PROCESSING') throw new Error(`unexpected ${status}`)
    await new Promise(r => setTimeout(r, 3000))
  }

  // 4. Complete
  await fetch(`${base}/audio/complete`, {
    method: 'POST', headers,
    body: JSON.stringify({ model, queue_id }),
  })
}

Capability probing

Before calling /audio/queue, inspect the model entry returned by GET /models?type=music — each row's model_spec exposes (among other fields):

  • supports_lyrics, lyrics_required, supports_lyrics_optimizer
  • supports_force_instrumental, supports_speed, supports_language_code
  • voices[], default_voice
  • min_prompt_length, prompt_character_limit
  • min_speed, max_speed
  • pricing.generation (per-job), pricing.per_second (per second generated), pricing.per_thousand_characters (character-priced narration), or pricing.durations (duration-tiered map: {"<tier>": {usd, diem, min_seconds, max_seconds}}) — each model uses one of these shapes

Errors

CodeMeaning
400Wrong params (lyrics on an instrumental-only model, duration_seconds outside allowed range, voice not in model's list).
401Auth / Pro-only model.
402Insufficient balance. Bearer → INSUFFICIENT_BALANCE; x402 → PAYMENT_REQUIRED.
404On retrieve/complete: unknown / expired queue_id.
422Content policy violation. ContentViolationError may include suggested_prompt.
429Rate limited.
500 / 503Inference or capacity issue.

Gotchas

  • Quote before queue — music is pay-per-second; unexpected duration_seconds can blow through a budget. Use /audio/quote to gate the queue call against your available balance (/billing/balance or /x402/balance/...).
  • queue_id is UUIDv4. Store it alongside the model — both are required for every subsequent call.
  • Media URLs are ephemeral. Download during retrieve and store yourself; after complete, Venice deletes the file.
  • lyrics_optimizer: true and a non-empty lyrics_prompt is a 400.
  • Poll rate: don't hammer /retrieve. 2–5 s is plenty — the job queue is the same regardless of poll frequency.
  • execution_duration from the retrieve status is cumulative (ms since enqueue); average_execution_time is the P80 expected total.

适合场景

01

生成背景音乐

02

生成歌曲或旋律

03

视频和播客配乐

04

社媒内容音频素材

能力概览

能力 1

调用音乐生成模型

能力 2

支持文本到音乐或歌曲生成

能力 3

提供 CLI 示例和使用场景

能力 4

适合音频内容工作流

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.27%
按下载量换算46

Claude

30.75%
按下载量换算42

Cursor

21.05%
按下载量换算28

Gemini CLI

10.34%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills