Logo Scenario Godot Audio

Scenario Godot Audio

Tổ chức
scenario-labs
scenario-godot-audio

Dùng khi thêm hoặc sửa âm thanh trong Godot 4.7: bus âm thanh và hiệu ứng, thanh trượt âm lượng, tình trạng “quá nhiều âm thanh”, âm thanh chiến đấu với hàng trăm kẻ địch, âm thanh bị clipping hoặc méo, âm thanh 3D quá nhỏ hoặc không đổi hướng phát, vùng vang âm không hoạt động, âm thanh bị che khuất, nhạc thích ứng hoặc tương tác (AudioStreamInteractive, layer, stinger), nhạc lặp bị ngắt quãng, SFX lặp lại, AudioStreamRandomizer, AudioStreamGenerator, thiết lập nhập, hoặc nhập nhạc, SFX và giọng nói do AI tạo từ Scenario hoặc ElevenLabs.

Tổng quan

Nhà phát hànhscenario-labs
Kho mãskills
Tên kỹ năngscenario-godot-audio
Sao
970
Bản fork
114
Tệp đi kèm
13
Giấy phépMIT
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ộ.

  • 13 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 scenario-labs 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 Scenario Godot Audio 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/scenario-labs/skills/tree/main/skills/game-engines/godot/scenario-godot-audio
  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/scenario-labs/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/game-engines/godot/scenario-godot-audio .claude/skills/scenario-godot-audio
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 Scenario Godot Audio 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 Scenario Godot Audio 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 Scenario Godot Audio 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.

Godot audio (audio implementer)

Target: Godot 4.7.2.stable, macOS Apple Silicon.

At expert level, the mix is designed as data and then measured. Bus layouts, music transitions and voice limits are written as specs. Every claim gets checked with numbers read from the mixer, since an agent cannot listen. Experts spend more effort deciding which sounds not to play than on playing them. That is the core of combat audio. If a sibling skill named here is missing from your available skills, ask the user to install it (npx skills add scenario-labs/skills --skill <name>); unattended, proceed from tool schemas and flag the gap.

REQUIRED BACKGROUND: scenario-godot-expert (channels, gd_run, the review loop, 4.7 traps).

Status (2026-10-02): 18 live jobs in 12 test groups, the round-2 checks (P15) and 13 offline tests all pass in Godot 4.7.2 (references/procedures.md, tests/code/godot-audio/).

Stance (the expert delta)

  1. Measure headless; do not trust the "no sound" warning. The version deltas say --headless uses the Dummy driver and is silent. That is true for the speakers only. In 4.7.2 the Dummy driver still mixes in real time at 44.1 kHz. Peak meters, AudioEffectCapture and AudioEffectRecord all work there, and a -24.08 dBFS file reads -24.07 (observed). For timing, render offline with AudioStreamPlayback.mix_audio() (audio_meter.render_stream), sample-exact; real-time recordings start about 0.2 s late (observed).
  2. Good combat audio comes from not playing sounds. Somberg: "a lot of audio technology is about not playing sounds" (Vjm-- 00:05:20). Cap each sound type, keep about two plays within a radius, and cull by distance before spending a voice. Measured here with 200 enemies firing at 10 Hz: the naive mix peaks at +32.4 dBFS before the limiter, while a 32-voice pool with caps peaks at +8.5 (P6).
  3. Watch out for synchronous starts. With a hard cap and no cooldown, all 12 voices start on the same tick and end together. The mix then pulses in bursts (waveform sheet, P6). A per-type cooldown of 25 ms plus 4 randomized takes spreads them out, and the peak drops to -13.9 dBFS [added, measured].
  4. Write music as a transition table and audit every reachable pair. Octodemy builds the matrix cell by cell (spBa 00:03:59). Bittmann wants every state change designed (dPXa 00:18:07). An unlisted pair is not a hard cut. In 4.7.2 it waits for the next beat, then fades the source out over about one beat (observed, P9). music_builder.audit_interactive lists the missing pairs.
  5. Put hold on the transition that leaves the clip you want to come back to. Docs and Octodemy describe "hold previous" plus return-to-hold (spBa 00:07:49). In 4.7.2 the return only works when hold is set on the earlier transition, the one that leaves the interrupted clip. With hold on the transition into the stinger, all 6 variants went silent after the stinger (observed, P9).
  6. Route everything through named buses, and reference them by name. Create Music and SFX buses first (DevWorm 07Ky, Game Dev Artisan h3_1). A player whose bus is renamed reads back "Master" and plays there. It recovers once the name is restored (observed). Audit scenes for players on Master or on missing buses (P13).
  7. Measure spatial audio on the real curve. With 4.7.2 defaults (unit_size 10, max_db +3), a 3D source is flat from 1 m to 7 m, drops 3 dB at 10 m and 21 dB at 80 m. A low-pass removes a further 22 dB of 8 kHz at 20 m. area_mask defaults to 0, so Area3D reverb overrides do nothing until it is set to 1 (P7).
  8. Condition generated audio before import, and verify it on the loaded resource. AI MP3s arrive hot (one test file: -8.4 LUFS, peak +0.99 dB) with silent padding. Normalize long files with two-pass loudnorm. Level short one-shots by peak, because loudnorm missed its target by 3 LU on a 0.5 s hit (observed, P4).

Establish first

InputWhy it changes the planDefault if not given
Platform (desktop, mobile, web)Web plays in Sample mode by default (default_playback_type.web = 1), which bypasses bus effects (docs)desktop
2D or 3D, listenerAudioStreamPlayer2D or 3D, unit size, max distance3D, Camera3D listener
Peak simultaneous sourcespool size, caps200 enemies, 32 voices
Music style (rhythmic, ambient)bar or beat exits versus immediate, BPM importrhythmic, 4/4
Asset sourceconditioning: AI (scenario-audio, scenario-elevenlabs) or a sound designerAI files, conditioned
Middleware (FMOD, Wwise)native nodes versus plugin banksnative Godot
Loudness targetsper-kind LUFS-18 LUFS SFX, voice and music; -24 ambience [added]

Workflow

  1. Buses as data (P1, P2). Build the layout from audio_buses.COMBAT_LAYOUT with build_layout, save it to the file named by audio/buses/default_bus_layout, and reload it in a fresh process. GATE: audit_layout returns no flags, and the HardLimiter is on Master after the reload. A slider at 0.5 sets -6.02 dB, and the output drops 6.02 dB.
  2. Import settings (P3). Edit .import keys with gd_audio.set_import_params, run gd_run.import_project, then read the loaded resource. GATE: music has loop, bpm and beat_count set on the loaded stream, and gd_audio.audit_imports returns no flags.
  3. Generated assets (P4). prepare_ai_audio(src, dst, kind) trims silence, levels the file and converts SFX to mono WAV. bars_for(seconds, bpm) gives beat_count. GATE: a loudness spread under 1 LU per kind, no lead silence, and a loop seam with a lag of 0 samples from audio_meter.loop_seam(stream).
  4. SFX variation (P5). Use AudioStreamRandomizer with 3 or more takes, pitch in semitones and a volume offset. GATE: no repeats over 24 plays, all takes used, and the measured pitch within the set range.
  5. Voices (P6). Use SfxPool with per-type limit, radius_m, radius_limit, cooldown_ms, max_distance_m and priority stealing. GATE: on the 200-enemy burst, live voices stay within the cap, the node count stays flat, and the peak before the limiter is under 0 dBFS. Then open the waveform sheet and look at it.
  6. Space (P7, P8, P15). Listener first: in 3D with no current Camera3D or AudioListener3D, every 3D player is silent (-200 dB). AudioListener3D.make_current() overrides the camera (moved 40 m off: -12.1 to -29.8 dB, sides swapped). In 2D without a listener the viewport center hears: put an AudioListener2D on the player (DevWorm 07Ky 00:33:25, First Pancake 1PDU 00:04:05). Then unit_size, max_distance, area_mask = 1 for room buses, and occlusion (one ray at play time for shots, Occluder3D for long emitters). GATE: one current listener; every positional player on a named non-Master bus (audio_audit.scan); measured levels per distance, left/right balance, and an 8 kHz drop of 12 dB or more when blocked.
  7. Music (P9). Build the interactive stream with music_builder.build_interactive(spec), audit it and save it as .tres. Use AudioStreamSynchronized stems for layers. GATE: a tone-tracked offline render shows each switch on its bar or beat, and the stinger returns to the held clip.
  8. Mix states keyed on game state (P2, P15). Just Cause 4 mutes ambience above 5 engaged enemies and moves the combat mix in about 1 s (uN8R 00:19:07 to 00:21:12). Write the state as a function of the game, not of the audio:
    gdscript
    static func combat_mix(engaged: int) -> Dictionary:
    	if engaged == 0: return {"Ambience": -6.0, "Music": -8.0}
    	if engaged <= 5: return {"Ambience": -12.0, "Music": -6.0}
    	return {"Ambience": -80.0, "Music": -4.0}
    # on change: audio_buses.apply_state(self, combat_mix(n), 1.0)
    GATE: for 0, 3 and 8 engaged, each bus reaches its target within the fade (measured exact at 0.25 s). Do not toggle buses by hand for silence: Godot disables a silent bus after a few seconds by itself (audio buses doc).
  9. Render the mix (P12). Run Movie Maker with --write-movie x.avi --fixed-fps 60 (windowed, 160x90), then gd_audio.movie_audio. GATE: 48 kHz output, two seeded renders with identical MD5, integrated loudness inside the target, a true peak under -1 dBTP, and a spectrogram that you open.

Numbers

ValueMeasured or sourceRelative to
3D level, flat region1 to 7 m at 0 dB, -3 dB at 10 m, -8.9 at 20, -14.8 at 40, -20.7 at 80 (500 Hz)inverse model, unit_size 10, max_db +3
Distance low-passnone at 10 m; 8 kHz a further -22 dB at 20 m, -29 at 40 mdefaults 5000 Hz, filter_db -24; filter_db 0 disables it
Pan, 5 m to the rightL -16.0 / R -10.0 dBpanning_strength 1.0 times project 3d 0.5
Linear slider0.5 is -6.02 dB; mute under 0.05Game Dev Artisan (h3_1 00:09:23)
Pool32 voices, ring of playersMichael Games (H-6p 00:09:44)
Radius rulekeep about 2 plays per radiusSomberg (00:05:52), Murch's "rule of two and a half"
Combat peak before the limiternaive +32.4, pooled +8.5, tuned -13.9 dBFS200 enemies, 10 Hz, 2 s (P6)
Occlusion8 kHz -58 dB through a 1 kHz low-pass; Occluder3D 20 kHz to 800 Hz in about 0.5 sP8
Loudness targets-18 LUFS SFX, voice, music; -24 ambience; true peak -1 dBTP[added] starting points
Short-sound thresholdunder 3 s, peak level to -3 dBFSloudnorm missed by 3 LU on 0.5 s (P4)
Masternever above 0 dB; work in -60 to 0 dBaudio buses doc

Quality gates

  • Measurable: a clean audit_layout; a clean audit_interactive, with no missing reachable pairs; a clean audit_imports; a clean audio_audit.scan (no players on Master, no missing streams, area_mask set where an Area overrides the bus). On the stress burst, the peak before the limiter is under 0 dBFS, live voices are at or under the cap, and the node count is stable. analyze() per file: loudness within 1 LU of target, true peak at or under -1 dBTP, lead_silence_s under 0.01 for one-shots. Loop seams show lag 0. Generator get_skips() is 0.
  • Visual: a waveform contact sheet of naive, pooled and tuned stress renders, and a spectrogram of the Movie Maker mix. Open them and look for walls of clipping, periodic bursts and missing switches.
  • By ear (the user): musicality of transitions, repetition feel, reverb naturalness. Say so; do not claim it.

Common mistakes

MistakeWhat it looks likeFix
One AudioStreamPlayer3D per enemy, play on every shot+32 dBFS wall, limiter pumping, 200 live voicesSfxPool with caps, radius rule, cooldown
A cap without a cooldownMix pulses every clip lengthcooldown_ms 25 or more, Randomizer takes
Area3D reverb zone does nothingRoom bus reads -200 dBarea_mask = 1 on players (4.7 default 0)
Bus renamed in the layoutPlayer shows Master, ignores the sliderKeep names stable; audio_audit.scan
Hold set on the transition into the stingerMusic silent after the stingerHold on the transition leaving the held clip
Trusting the .import textLoop still off in gameCheck the loaded stream's loop and bpm
loudnorm on a 0.5 s hit-21 LUFS instead of -18Peak-level short sounds (prepare_ai_audio)
Music as WAV, SFX in stereoLarge builds, wasted mono foldaudit_imports: Ogg or MP3 music, mono SFX
Awaiting finished on looping audioCode hangsfinished fired 0 times in 1 s on a looping 0.2 s clip, once without loop (docs, P15)
No current listener in 3DEvery 3D sound silent, no errora current Camera3D or AudioListener3D (P15)
Setting both random_pitch and random_pitch_semitonesThe second silently overwrites the firstone property: 2 semitones is random_pitch 1.1225; all variation defaults to 0 (docs, P15)
Footstep timer tested with ==No steps at all: 0 in 10 stimer <= 0.0, then timer += interval: 28 steps (FinePointCGI 7kD7 00:38:17, P15)
AudioEffectLimiter on MasterDeprecated warningAudioEffectHardLimiter, ceiling -1 dB
Bus effects on webNo reverb or filters in the browserPlayback type Stream for those players (docs)
Ogg made with ffmpeg's native vorbis encoderLoop wraps 32 samples late (8.0007 s file)Use libvorbis or MP3 with a gapless header; check audio_meter.loop_seam

Handoffs

  • Receives: MP3/WAV with prompt, BPM and duration from scenario-audio and scenario-elevenlabs (through prepare_ai_audio, then P3); events, positions and the engaged-enemy count from scenario-godot-gameplay; autoload placement from scenario-godot-architecture; slider nodes from scenario-godot-ui.
  • Delivers: bus names and save_volumes/load_volumes to scenario-godot-ui; a play(type, pos) API returning an int id to scenario-godot-gameplay; pool stats and the web Sample-mode list to scenario-godot-performance-export; the live test file to scenario-godot-pipeline-automation.
  • Packet: project path, layout and music specs, result JSONs, waveform sheet, spectrogram, analyze() table, open issues.

Godot 4.7 notes

  • area_mask defaults to 0 on AudioStreamPlayer2D and 3D (4.7). Area bus overrides need it set to 1 (verified).
  • AudioEffectLimiter is deprecated; use AudioEffectHardLimiter. AudioEffectSpectrumAnalyzer.tap_back_pos is removed.
  • set_bus_volume_linear, volume_linear and max_polyphony (default 1) exist. AudioStreamInteractive, Synchronized and Playlist date from 4.3.
  • MP3 carries bpm and beat_count like Ogg (verified). AudioStreamWAV has no bpm, so beat-synced clips must be Ogg or MP3.
  • WAV imports default to QOA (compress/mode 2, format 3).
  • Headless mixes through the Dummy driver (stance 1). Movie Maker needs a window.
  • Godot 3 habits to drop: yield, Tween nodes, ResourceSaver.save(path, res).

References

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 Scenario Godot Audio làm được gì?

Dùng khi thêm hoặc sửa âm thanh trong Godot 4.7: bus âm thanh và hiệu ứng, thanh trượt âm lượng, tình trạng “quá nhiều âm thanh”, âm thanh chiến đấu với hàng trăm kẻ địch, âm thanh bị clipping hoặc méo, âm thanh 3D quá nhỏ hoặc không đổi hướng phát, vùng vang âm không hoạt động, âm thanh bị che khuất, nhạc thích ứng hoặc tương tác (AudioStreamInteractive, layer, stinger), nhạc lặp bị ngắt quãng, SFX lặp lại, AudioStreamRandomizer, AudioStreamGenerator, thiết lập nhập, hoặc nhập nhạc, SFX và giọng nói do AI tạo từ Scenario hoặc ElevenLabs.

Vì sao nên dùng Scenario Godot Audio 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. Scenario Godot Audio 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 Scenario Godot Audio trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/scenario-labs/skills/tree/main/skills/game-engines/godot/scenario-godot-audio. 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 Scenario Godot Audio?

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 Scenario Godot Audio 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 Scenario Godot Audio 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 Scenario Godot Audio có miễn phí không?

Có. Kỹ năng này được scenario-labs phát hành trên GitHub theo giấy phép MIT. 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 👇