Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

spatial-audio空间音频

Agent Skill

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

总安装

399

周安装

16

GitHub Stars

4

下载量

129
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于辅助音频处理、配乐生成和语音合成相关的工作流。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中需要处理播客或视频配音素材时使用。
  • 通过 GitHub 安装,需确认输入音频格式和模型限制后再操作。
  • 涉及人声克隆或版权音乐时,应提前核对授权合规要求。
  • spatial-audio 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Purpose

This skill implements 3D audio positioning and rendering for AR/VR applications, using techniques like Head-Related Transfer Function (HRTF) to simulate spatial sound sources in real-time.

When to Use

Use this skill when building immersive AR/VR experiences that require realistic audio, such as virtual tours, gaming environments, or simulations where sound direction and distance enhance user presence. Avoid it for 2D audio needs, as it adds overhead for non-spatial applications.

Key Capabilities

  • Real-time HRTF-based audio rendering for accurate 3D positioning.
  • Support for dynamic sound source updates, including occlusion and reverberation effects.
  • Integration with AR/VR frameworks for device-specific audio output (e.g., headphones or spatial speakers).
  • Configurable parameters like sound attenuation models (inverse distance or logarithmic) and frequency ranges (20Hz-20kHz).
  • Multi-source handling, supporting up to 32 concurrent audio sources per session.

Usage Patterns

Always initialize the audio context first, then set up sound sources with positions. Use a loop for updates in real-time applications. For CLI, pipe audio files through the tool; for API, call endpoints in sequence. Pattern: Import library > Create audio context > Add sources > Render and update. Handle cleanup on exit to free resources.

Common Commands/API

Use the OpenClaw CLI for quick prototyping or the REST API for programmatic control. Authentication requires setting $SPATIAL_AUDIO_API_KEY as an environment variable.

  • CLI Command: Render audio with positioning spatial-audio render --input audio.wav --position 1.5 2.0 3.0 --hrtf default --output rendered.wav This processes an audio file at the specified 3D coordinates.
  • API Endpoint: Create a sound source POST to https://api.openclaw.ai/spatial-audio/sources with JSON body: {"sourceId": "src1", "position": [0, 0, 5], "audioUrl": "s3://bucket/audio.mp3"} Response includes a source handle for updates.
  • Code Snippet (Python): Initialize and position audio import openclaw.spatial_audio as sa context = sa.init(hrtf='default') source = sa.add_source(context, position=[1, 2, 3]) sa.update_position(source, [4, 5, 6])
  • Config Format: JSON for API configs, e.g., {"hrtfProfile": "custom", "attenuation": "inverse", "maxSources": 16} Load via CLI: spatial-audio config load --file config.json.

Integration Notes

Integrate by adding the OpenClaw SDK as a dependency (e.g., pip install openclaw-sdk or via npm for JS). Set $SPATIAL_AUDIO_API_KEY before runtime. For AR/VR frameworks, wrap in Unity's AudioListener or WebXR's AudioContext—e.g., in Unity, attach the SpatialAudio component to the main camera. Ensure audio devices are compatible; check for Web Audio API support in browsers. For multi-platform, use abstraction layers like Three.js for web-based AR.

Error Handling

Always check return codes or exceptions for errors. Common issues: Invalid positions (e.g., NaN values) return error code 400; audio device unavailability raises "DEVICE_NOT_FOUND". Handle with try-except blocks:

try:
    sa.render(context)
except sa.AudioError as e:
    if e.code == 400:
        print("Invalid position; correct coordinates.")

For CLI, parse stderr output (e.g., "Error: HRTF not loaded—use --hrtf flag"). Retry transient errors like network failures with exponential backoff.

Example 1: Basic Spatial Audio Setup in AR App

To set up 3D audio for an AR object:

  1. Initialize context: sa.init(hrtf='builtin')
  2. Add a sound source: source = sa.add_source(context, position=[0, 1, 2], audioUrl='object_sound.mp3')
  3. In the main loop, update based on user position: sa.update_position(source, user_coords)
  4. Render: sa.render(context) This creates a sound that moves relative to the user in an AR scene.

Example 2: Dynamic Audio in VR Simulation

For a VR game with moving sound sources:

  1. Use CLI for prototyping: spatial-audio render --input explosion.wav --position 10 0 0 --hrtf custom
  2. In code (e.g., JavaScript): const context = await sa.init(); const source = await sa.addSource(context, {position: [5, 0, 0]}); setInterval(() => sa.updateSource(source, [Math.random()*10, 0, 0]), 1000);
  3. Integrate with VR framework to sync with head tracking for immersive effects.

Graph Relationships

  • Related Cluster: ar-vr (e.g., shares dependencies with "ar-rendering" skill).
  • Inbound Links: Depends on "audio-processing" for base audio handling.
  • Outbound Links: Enhances "vr-interaction" by providing spatial feedback.
  • Cross-Skill: Integrates with "3d-visualization" for synchronized audio-visual experiences.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.19%
按下载量换算48

Claude

28.71%
按下载量换算37

Cursor

17.63%
按下载量换算23

Gemini CLI

9.44%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills