Token导航 LogoToken导航TokenDH.com
开发执行命令github未标认证来源可访问许可证需确认审计通过

game-audio游戏音频

Agent Skill

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

总安装

416

周安装

17

GitHub Stars

4

下载量

133
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill game-audio

简介

用于辅助游戏音频处理,支持实时音效、背景音乐和空间音频管理。

  • 适合开发需要动态音效的游戏项目,特别是 VR/AR 和移动端优化场景。
  • 通过集成 Unity 或 Unreal 引擎,实现低延迟音频流处理和定位功能。
  • 安装前需确认目标平台、音频格式兼容性及性能限制条件。
  • 涉及版权音乐或人声克隆时,应核查授权范围和合规要求。

SKILL.md

game-audio

Purpose

This skill enables real-time audio processing in game engines, managing sound effects, music playback, and spatial audio for immersive experiences. It integrates with engines like Unity or Unreal to handle audio streams, effects, and positioning, ensuring low-latency performance in games.

When to Use

  • Developing games that require dynamic audio, such as responsive sound effects for player actions.
  • Implementing spatial audio for VR/AR games to simulate 3D sound environments.
  • Optimizing audio for performance in resource-constrained mobile games.
  • When you need to mix audio layers, like background music with in-game effects, using engine-specific APIs.

Key Capabilities

  • Process real-time audio streams with effects like reverb, echo, and pitch shifting via the processAudio function.
  • Handle spatial audio using vector-based positioning, e.g., calculating sound attenuation based on player coordinates.
  • Support multiple audio formats (WAV, MP3, OGG) and dynamic volume control.
  • Integrate with game loops for event-driven audio triggers, such as playing a sound on collision detection.
  • Provide audio analysis tools, like frequency spectrum detection for adaptive music.

Usage Patterns

To use this skill, first initialize it in your game engine script, then call methods for audio playback or processing. Always check for audio context availability before operations. For CLI usage, run commands from the project root directory. Pattern: Import the skill, set up authentication with $GAME_AUDIO_API_KEY, and use event handlers for audio events.

Common Commands/API

  • CLI Command: claw audio play --file assets/sound.wav --volume 0.8 --loop true

- Flags: --file specifies the audio file path; --volume sets level (0.0-1.0); --loop enables looping.

  • API Endpoint: POST /api/game-audio/play with JSON body: {"file": "assets/sound.wav", "position": [0, 0, 0]}

- Requires header: Authorization: Bearer $GAME_AUDIO_API_KEY

  • Code Snippet (Python): import claw_audio claw_audio.init(key=os.environ['GAME_AUDIO_API_KEY']) claw_audio.play_sound('assets/sound.wav', volume=0.5)
  • Code Snippet (C# for Unity): using ClawAudio; void Start() {AudioManager.Instance.Play("assets/music.mp3", loop: true);}
  • Config Format: JSON for audio settings, e.g., {"effects": {"reverb": 0.3}, "spatial": true}. Load via claw_audio.load_config('config.json').

Integration Notes

Integrate by adding the skill as a dependency in your project (e.g., via npm for Node.js or Unity package manager). Ensure audio hardware is detected using claw_audio.check_device(). For cross-engine compatibility, wrap calls in abstraction layers. If using with other OpenClaw skills, pass audio events via the cluster (e.g., link to "game-dev" skills). Set env var for auth: export GAME_AUDIO_API_KEY=your_key. Test integration in a sandbox environment before production.

Error Handling

Always wrap audio calls in try-catch blocks to handle exceptions like file not found or API failures. Common errors: "Audio device unavailable" – check with claw_audio.is_device_ready() and retry after 2 seconds. For API errors, verify status codes (e.g., 401 for unauthorized) and log with claw_audio.log_error(message). Use custom handlers: e.g., in code:

try:
    claw_audio.play_sound('file.wav')
except AudioError as e:
    print(f"Error: {e}. Retrying...")
    claw_audio.retry_operation()

Monitor for latency issues by setting timeouts on commands, e.g., --timeout 5000 in CLI.

Concrete Usage Examples

  1. Playing a sound effect on player jump in a Unity game:

- Code: void OnJump() {AudioManager.Instance.Play("jump.wav", position: playerTransform.position);} - Steps: Initialize AudioManager in Start(), ensure $GAME_AUDIO_API_KEY is set, and call OnJump() on input event.

  1. Implementing spatial audio for enemy detection in a 3D game:

- Code: def detect_enemy(): position = [enemy_x, enemy_y, enemy_z] claw_audio.play_spatial('alert.mp3', position=position, radius=5.0) - Steps: Call detect_enemy() in the game loop, pass player position for attenuation, and adjust radius for sound fade.

Graph Relationships

  • Related to: "game-dev" cluster (e.g., skills like game-rendering for synchronized audio-visual effects).
  • Connected via tags: "audio" links to skills like speech-recognition; "sound" to audio-editing tools.
  • Dependencies: Requires "core-audio" for base functionality; integrates with "game-physics" for spatial calculations.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

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

平台分布

Codex

33.76%
按下载量换算45

Claude

28.5%
按下载量换算38

Cursor

18.99%
按下载量换算25

Gemini CLI

9.04%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/alphaonedev/openclaw-graph --skill game-audio 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills