设计与多媒体

roblox-audio

el4cteo/roblox-skills

Sound and music - the Audio API (AudioPlayer, AudioEmitter, AudioListener, AudioDeviceOutput, Wire, effects, faders), classic Sound/SoundGroup, 2D vs 3D audio, music and SFX volume, client vs server playback, asset permissions, streaming caveats, voice routing, text-to-speech. Use when adding music, sound effects, spatial audio, mixing, or fixing sounds that don't play.

  • 513 次安装
  • 55 星标
  • 收录于

安装命令

npx skills add https://github.com/el4cteo/roblox-skills --skill roblox-audio

SKILL.md

Roblox audio

Two systems coexist:

  • Audio API (modular, current): AudioPlayer → Wire → (AudioEmitter … AudioListener) → Wire → AudioDeviceOutput, with effect objects inserted in the chain. Required for voice-chat processing, mixing graphs, analyzers, text-to-speech/speech-to-text.
  • Sound (classic, still supported): one object, parented to a part for 3D or to SoundService/UI for 2D; routed through SoundGroups with SoundEffect children. Fine for simple games and existing code.

Don't mix both for the same feature; follow what the project uses.

2D audio (music, UI) with the Audio API

--!strict
-- Client: build a music player once.
local SoundService = game:GetService("SoundService")