Logo Ue Audio And Metasounds

Ue Audio And Metasounds

Cộng đồng
kevinpbuckley
ue-audio-and-metasounds

Play and control audio in Unreal — the sound asset types (SoundWave, SoundCue, MetaSound Source), playing 2D/3D sounds from C++ (UGameplayStatics, UAudioComponent), spatial attenuation, sound classes/submixes/concurrency for mixing, runtime MetaSound parameters, Quartz beat-quantized playback, and the MetaSound Builder API. Use when playing SFX/music, attaching looping sounds to actors, setting up 3D spatialization, mixing/ducking audio, driving procedural audio with MetaSounds, or debugging silent sounds, voice spam, or parameter mismatches.

Add to TypingMind

Tổng quan

Nhà phát hànhkevinpbuckley
Kho mãunreal-engine-skills
Tên kỹ năngue-audio-and-metasounds
Sao
89
Bản fork
9
Tệp đi kèm
4
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 4 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được kevinpbuckley công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Ue Audio And Metasounds trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-audio-and-metasounds
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kevinpbuckley/unreal-engine-skills.git /tmp/unreal-engine-skills
mkdir -p .claude/skills
cp -r /tmp/unreal-engine-skills/skills/core/ue-audio-and-metasounds .claude/skills/ue-audio-and-metasounds
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Ue Audio And Metasounds trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Ue Audio And Metasounds ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Ue Audio And Metasounds với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Audio & MetaSounds

The Unreal audio pipeline: a sound asset (USoundBase subclass) is activated either as a fire-and-forget one-shot or via a UAudioComponent for ongoing control. 3D sounds are positioned and faded using a USoundAttenuation asset. Mixing is handled through sound classes, submixes, and concurrency objects. MetaSounds are the modern, node-based, parameter-driven replacement for SoundCues.

When to use this skill

  • Playing SFX (gunshots, footsteps, impacts), music, or UI sounds from C++.
  • Attaching a looping or positional sound to an actor (engine hum, ambience).
  • 3D spatialization and distance falloff configuration.
  • Mixing: volume groups, ducking music under dialogue, limiting voice counts.
  • Procedural/parameterized audio (footsteps that vary, adaptive music) via MetaSounds.
  • Beat-synchronized audio events with the Quartz clock system.
  • Building or modifying MetaSound graphs at runtime via the Builder API.

Sound asset types

AssetClassBest for
Imported PCM clipUSoundWaveRaw audio; compose variation in a cue or MetaSound
Legacy node graphUSoundCueSimple randomization / modulation over waves
Modern graph with typed I/OUMetaSoundSourceProcedural, parameter-driven, DSP-composable audio
Abstract baseUSoundBaseThe type accepted by all play functions

Prefer MetaSounds for new dynamic audio. SoundCues remain fully supported and are simpler for lightweight randomization. USoundWave is never played directly in gameplay code — it is the leaf asset referenced inside cues or MetaSound graphs.

Playing sounds from C++

cpp
#include "Kismet/GameplayStatics.h"
#include "Components/AudioComponent.h"

// 2D (UI, music) — fire-and-forget, no spatialization:
UGameplayStatics::PlaySound2D(this, UISound);

// 3D at a world position — fire-and-forget:
UGameplayStatics::PlaySoundAtLocation(this, ExplosionSound, HitLocation,
    FRotator::ZeroRotator, 1.f, 1.f, 0.f, AttenuationAsset);

// 3D attached to a component — returns controllable UAudioComponent:
UAudioComponent* AC = UGameplayStatics::SpawnSoundAttached(
    EngineLoop, VehicleMesh, NAME_None);
AC->FadeIn(0.5f);

// Stop or adjust later:
AC->SetFloatParameter(TEXT("RPM"), 4200.f);  // MetaSound input
AC->FadeOut(0.3f, 0.f);

PlaySound* functions are fire-and-forget. Use SpawnSound* or a UAudioComponent placed on the actor when you need to stop, fade, change parameters, or react to OnAudioFinished. Store the component in a UPROPERTY() member so GC cannot collect it while it is playing (see ue-memory-and-gc).

Audio component placed on an actor

cpp
// Header — owned audio component, UPROPERTY keeps it alive:
UPROPERTY(VisibleAnywhere)
TObjectPtr<UAudioComponent> EngineAudio;

// Constructor:
EngineAudio = CreateDefaultSubobject<UAudioComponent>(TEXT("EngineAudio"));
EngineAudio->SetupAttachment(RootComponent);
EngineAudio->bAutoActivate = false;   // start silent; Play() from BeginPlay

// BeginPlay:
EngineAudio->SetSound(EngineLoopAsset);
EngineAudio->Play();

See references/audiocomponent-and-playback.md for the full UAudioComponent API, delegates, and playback state machine.

3D spatialization & attenuation

A USoundAttenuation asset bundles: distance model and falloff radius, spatialization algorithm (panning or HRTF plugin), occlusion, reverb send, air absorption, and priority attenuation. Assign it on the sound asset itself (AttenuationSettings on USoundBase) or override it per-call by passing it to PlaySoundAtLocation / SpawnSoundAttached.

A sound without an attenuation asset plays as flat 2D regardless of where the audio component is in the world. The inner radius defines a constant-volume zone; falloff begins at the inner radius and reaches zero at the falloff distance.

See references/attenuation-and-spatialization.md for the full FSoundAttenuationSettings fields, distance models, HRTF, and Audio Gameplay Volumes.

Mixing: classes, submixes, concurrency

ToolPurpose
Sound Class (USoundClass)Group sounds (SFX / Music / Voice) for shared volume, pitch, and property settings
Sound Mix (USoundMix)Push temporary class adjustments — duck Music when a Voice plays
Submix (USoundSubmix)DSP bus: apply effects (reverb, EQ, compression), meter, record audio
Concurrency (USoundConcurrency)Cap simultaneous voices in a group; choose a steal rule when limit is hit

A sound routes to its sound class's submix by default. Submix sends let a sound copy signal to additional buses (e.g. a reverb or analysis bus) without leaving the main chain. Audio Buses (UAudioBus) are an alternative bus type that route before or after source effects, useful for sidechaining.

See references/mixing-classes-submixes-concurrency.md for concurrency steal rules, submix effect chains, audio bus sends, and dynamic mixing from C++.

MetaSound parameters at runtime

MetaSound Sources expose typed inputs (float, int32, bool, trigger, wave) declared in the graph. Drive them from the owning audio component:

cpp
// Set before or during playback:
AC->SetFloatParameter(TEXT("Intensity"),   0.8f);
AC->SetBoolParameter(TEXT("IsUnderwater"), true);
AC->SetIntParameter(TEXT("FootSurface"),   2);

// Trigger a one-shot event inside the graph (stateless pulse):
AC->SetTriggerParameter(TEXT("OnImpact"));

// Swap the wave asset a graph node is playing:
AC->SetWaveParameter(TEXT("ImpactWave"), GroundHitWave);

Input names are case-sensitive FName values that must exactly match the graph's Input node names. A mismatch produces no error and no effect. The parameter interface is declared in Runtime/Engine/Public/Audio/SoundParameterControllerInterface.h.

MetaSounds also expose outputs (e.g., a float metering value). Read them through UMetasoundGeneratorHandle obtained from UMetaSoundSource:: GetGeneratorForAudioComponent — available only while the sound is playing.

See references/metasound-parameters-and-builder.md for the Builder API, output watching, and runtime graph authoring.

Quartz: beat-quantized playback

Quartz provides a game-thread musical clock (UQuartzClockHandle) that fires events on beat/bar boundaries. Use it to start sounds precisely on the beat without drifting audio timers:

cpp
// Obtain the clock subsystem and create or find a named clock:
UQuartzSubsystem* Quartz = UQuartzSubsystem::Get(GetWorld());
UQuartzClockHandle* Clock = Quartz->CreateNewClock(this, TEXT("MusicClock"),
    FQuartzClockSettings{});

// Schedule a sound to start on the next bar boundary:
FQuartzQuantizationBoundary Boundary;
Boundary.Quantization = EQuartzCommandQuantization::Bar;
Boundary.BoundaryType = EQuarztQuantizationBoundaryType::FromNow;
AC->PlayQuantized(GetWorld(), Clock, Boundary, {});

The Quartz subsystem (UQuartzSubsystem) lives in the Audio Mixer module. UAudioComponent::PlayQuantized is declared in AudioComponent.h:521.

Triggering from gameplay & animation

Footstep, impact, and weapon sounds should be triggered from Anim Notifies (see ue-animation-system) or gameplay events, not manual timers. This keeps audio in sync at any play rate or time dilation. For high-frequency impacts use concurrency to avoid voice spam — limit simultaneous instances and choose an appropriate steal rule.

Gotchas

  • Fire-and-forget when you needed control — PlaySound* returns nothing; use SpawnSound* or a component to stop, fade, or change parameters later.
  • No attenuation asset → 3D sound plays as 2D, no falloff.
  • Parameter name mismatch on MetaSounds → silent no-op, no log warning.
  • No concurrency limits → voice spam and clipping under heavy action.
  • Audio component not in a UPROPERTY → GC'd while playing, sound stops.
  • SetWaveParameter called on a SoundCue → no effect; wave params target MetaSound wave inputs (or legacy SoundCue wave params — different systems).
  • bDisableParameterUpdatesWhilePlaying set on the component → parameter calls are queued but not forwarded to the active sound.
  • Importing non-WAV → import PCM WAV only; build variation inside MetaSound or SoundCue graphs rather than baking it into the file.
  • Virtualization — EVirtualizationMode on USoundBase controls whether looping sounds silently continue (PlayWhenSilent), restart, or drop when evicted. Default is Disabled; forgotten virtualization config is a common cause of music "disappearing" under heavy load.

Version notes

  • MetaSounds were introduced in UE5.0; the Builder API (Beta) expanded significantly in 5.4–5.5; output watching via UMetasoundGeneratorHandle was stabilised in 5.4.
  • EVirtualizationMode::SeekRestart is experimental as of UE 5.6–5.8 (SoundBase.h:76).
  • FAudioComponentParam (old named-parameter struct) was deprecated in UE 5.0; use FAudioParameter / SetFloatParameter etc. instead.
  • OnGeneratorInstanceCreated / OnGeneratorInstanceDestroyed on UMetaSoundSource deprecated in 5.6; use OnGeneratorInstanceInfoCreated / OnGeneratorInstanceInfoDestroyed (MetasoundSource.h:338–344).

References & source material

Engine source (UE 5.8):

  • Runtime/Engine/Classes/Components/AudioComponent.h — UAudioComponent:167; Play:517, Stop:583, FadeIn:500, FadeOut:511, SetFloatParameter:548, SetBoolParameter:534, SetIntParameter:541, SetWaveParameter:622, OnAudioFinished:456, GetPlayState:605, SetSubmixSend:644.
  • Runtime/Engine/Public/Audio/SoundParameterControllerInterface.h — ISoundParameterControllerInterface:24, SetTriggerParameter:32.
  • Runtime/Engine/Classes/Sound/SoundBase.h — USoundBase:108, SoundClassObject:117, AttenuationSettings:222, ConcurrencySet:188, VirtualizationMode:170, EVirtualizationMode:57.
  • Runtime/Engine/Classes/Sound/SoundWave.h — USoundWave:421 (extends USoundBase; leaf asset for raw PCM audio).
  • Runtime/Engine/Classes/Sound/SoundCue.h — USoundCue:90 (legacy node graph over USoundWave assets).
  • Runtime/Engine/Classes/Sound/SoundAttenuation.h — USoundAttenuation:453, FSoundAttenuationSettings:148.
  • Runtime/Engine/Classes/Sound/SoundClass.h — USoundClass, FSoundClassProperties:54.
  • Runtime/Engine/Classes/Sound/SoundSubmix.h — USoundSubmix, submix effects.
  • Runtime/Engine/Classes/Sound/SoundConcurrency.h — FSoundConcurrencySettings:74, EMaxConcurrentResolutionRule:31.
  • Runtime/Engine/Classes/Sound/AudioBus.h — UAudioBus, EAudioBusChannels:13.
  • Runtime/Engine/Classes/Kismet/GameplayStatics.h — PlaySound2D:680, SpawnSound2D:699, PlaySoundAtLocation:732, SpawnSoundAtLocation:754, SpawnSoundAttached:778.
  • Plugins/Runtime/Metasound/Source/MetasoundEngine/Public/MetasoundSource.h — UMetaSoundSource:89, GetGeneratorForAudioComponent:326, OnGeneratorInstanceInfoCreated:343.
  • Plugins/Runtime/Metasound/Source/MetasoundEngine/Public/MetasoundBuilderSubsystem.h — UMetaSoundBuilderSubsystem, UMetaSoundSourceBuilder:71.

Official docs (UE 5.8):

Deep-dive references in this skill:

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Ue Audio And Metasounds làm được gì?

Play and control audio in Unreal — the sound asset types (SoundWave, SoundCue, MetaSound Source), playing 2D/3D sounds from C++ (UGameplayStatics, UAudioComponent), spatial attenuation, sound classes/submixes/concurrency for mixing, runtime MetaSound parameters, Quartz beat-quantized playback, and the MetaSound Builder API. Use when playing SFX/music, attaching looping sounds to actors, setting up 3D spatialization, mixing/ducking audio, driving procedural audio with MetaSounds, or debugging silent sounds, voice spam, or parameter mismatches.

Vì sao nên dùng Ue Audio And Metasounds trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Ue Audio And Metasounds là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Ue Audio And Metasounds trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-audio-and-metasounds. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Ue Audio And Metasounds?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Ue Audio And Metasounds với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Ue Audio And Metasounds với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Ue Audio And Metasounds có miễn phí không?

Kỹ năng này được kevinpbuckley phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇