Retail WoW · Midnight arena · audio only

Hearing Arena Cooldowns

A phone sits next to your PC speakers while you play arena. When an enemy pops a big offensive cooldown, it says “Run.” When their defensive runs out, it says “Attack.” This page explains how it recognises spells from their sound effects, and how we tested whether that works.

Illustration of the technique: bright points are spectrogram peaks, and the lines are the peak pairs that become fingerprint hashes. This is a stylised drawing, not data from a real clip.

What the phone says

Every spell in the library has a role. The role decides what the phone says and when.

Enemy burst“Run”

Said immediately. Examples: Recklessness, Combustion, Pillar of Frost, Metamorphosis.

Enemy defensive“Attack”

Starts a countdown of the buff's duration and speaks just before it ends. Example: Ice Block lasts 10 s, so the call comes at 9.5 s.

Crowd control“Attack”

Said immediately when crowd control on a healer is heard. Examples: Polymorph, Cyclone, Fear, Hex.

The app only listens through a microphone and speaks. It never touches the game client, its memory, network traffic or inputs.

1. Collect the real sound files

Each spell page on Wowhead, for example Recklessness, has a Sounds tab that lists the spell's sound kits and links each audio file. The same page lists the buff's Duration, which the “Attack” timer needs.

  1. Pick spells

    Two or three per class (40 spells), each tagged threat, defensive or cc.

  2. Open pages by hand

    A visible Chrome window loads one page every 4–8 s. If a captcha appears, a person solves it.

  3. Read the page

    Sound kits and file URLs come from the Sounds list; duration and cooldown come from Spell Details.

  4. Download

    191 .ogg clips, up to 8 per spell, saved alongside a harvest.json index.

  5. Fingerprint

    Each clip becomes a list of landmark hashes. That gives 165 cues; the app ships only the hashes.

What was parsed

Spells
40 across 13 classes (20 threat, 16 defensive, 4 cc), all with at least one cue
Sound kits · clips downloaded
84 kits · 191 clips
Cues fingerprinted
165 (26 looping sounds skipped)
Landmark hashes
165,919
Defensives with a buff duration
16 of 16
Spells with only spell-specific sounds
18 of 40
All 40 spells
ClassSpellIDRoleClipsCuesGeneric or sharedDuration
WarriorRecklessness1719threat44112 seconds
WarriorAvatar107574threat11–24 seconds
WarriorSpell Reflection23920defensive11–5 seconds
PaladinAvenging Wrath31884threat44–20 seconds
PaladinDivine Shield642defensive7768 seconds
PaladinBlessing of Protection1022defensive88710 seconds
HunterTrueshot288613threat11–15 seconds
HunterBestial Wrath19574threat11–15 seconds
HunterAspect of the Turtle186265defensive2218 seconds
RogueShadow Blades121471threat22212 seconds
RogueAdrenaline Rush13750threat33–15 seconds
RogueCloak of Shadows31224defensive55–5 seconds
PriestPower Infusion10060threat55–15 seconds
PriestPain Suppression33206defensive55–8 seconds
Death KnightPillar of Frost51271threat83312 seconds
Death KnightAnti-Magic Shell48707defensive55–5 seconds
Death KnightIcebound Fortitude48792defensive22–8 seconds
ShamanAscendance114050threat88215 seconds
ShamanSpirit Link Totem98008defensive4436 seconds
MageCombustion190319threat65–10 seconds
MageIcy Veins12472threat53–25 seconds
MageIce Block45438defensive21–10 seconds
WarlockSummon Infernal1122threat88–250 milliseconds
WarlockSummon Darkglare205180threat88220 seconds
WarlockUnending Resolve104773defensive8858 seconds
MonkStorm, Earth, and Fire137639threat11–n/a
MonkTouch of Karma122470defensive11110 seconds
MonkLife Cocoon116849defensive32112 seconds
DruidCelestial Alignment194223threat22115 seconds
DruidBerserk106951threat11–15 seconds
DruidBarkskin22812defensive8118 seconds
Demon HunterMetamorphosis191427threat44–n/a
Demon HunterThe Hunt370965threat8442 seconds
Demon HunterBlur212800defensive88510 seconds
EvokerDragonrage375087threat88818 seconds
EvokerObsidian Scales363916defensive88812 seconds
MagePolymorph118cc3311 minute
DruidCyclone33786cc8335 seconds
WarlockFear5782cc773n/a
ShamanHex51514cc8821 minute

2. The first matcher didn't work

The first version compared the rough shape of the sound's spectrum (18 mel bands) between live audio and each clip. Arena audio is a dense mix of abilities, footsteps, voice comms and music. Much of it has the same rough spectral shape as many spell sounds, so the matcher either missed spells or kept firing.

ThresholdSpells caught (clip 6 dB above background)False calls on plain VOD audio
0.86 (default)33–35%~140 / min
0.9313–18%~22 / min
0.965–8%~3 / min

No threshold worked, so this approach was removed.

3. Landmark fingerprinting

The game plays the same recorded file every time a spell is cast. That makes the problem like identifying a song: the job is to find an exact recording inside noisy audio. The approach Shazam made famous suits this well.

  1. Spectrogram

    Mic audio is resampled to 16 kHz and cut into 32 ms frames, one every 8 ms.

  2. Peaks

    Keep points louder than everything within ±40 ms and ±188 Hz, at most 4 per frame.

  3. Pairs

    Join each peak to up to 6 later peaks within 16–400 ms. Each pair is a hash of (frequency 1, frequency 2, time gap).

  4. Vote

    Look up each live hash in the library. A clip is matched when enough hashes agree on one time offset.

The offset vote is what keeps noise out. Background audio produces some peaks that happen to match a clip's hashes, but those hits land at scattered offsets. Only the real sound makes dozens of hashes line up at the same moment. Requiring at least N agreeing hashes (“Min matches”) sets how strict the matcher is.

Sample rate · FFT · hop
16 kHz · 512 points · 8 ms
Frequency band used
125 Hz – 7.25 kHz
Peak threshold
8 dB above the frame average
Pairing window
16–400 ms after, within ±1.5 kHz
Vote window
2.5 s, offsets within ±1 frame
Repeat handling
One sound gives one call

The same code (landmark.js) runs in the phone's browser and in the offline test tools, so test results reflect what the phone does.

4. Testing on real arena audio

Injection test: known answers

YouTube VODs don't come with a list of when each spell was cast. To get known answers, we mixed spell clips into real arena VOD audio every 9 seconds at three loudness levels, then counted what came back. The room setting also simulates the phone's path: laptop-speaker band limits, room echo, mic noise and a slight speaker/mic clock mismatch.

SetupCaught at +6 / 0 / −6 dBFalse callsDelay after sound starts
Mel matcher (removed)33–35% at +6 dB~140 / min—
Landmarks, direct mix94–100% / 93–100% / 100%0.1–0.9 / min0.7–0.8 s
Landmarks, simulated phone in a room58–88% / 46–67% / 50–67%0 / min0.5–0.6 s
Landmarks, clip not in the library~11%——

The last row is the trade-off: landmarks recognise the exact recordings we harvested, and very little else.

A real stream: 7 hours of a Warrior player

We ran the detector over a full 7 h 08 m stream by Bajheera (Fury/Arms Warrior, arena and battlegrounds), which took about 2 minutes. The strongest detections were almost all Recklessness, the streamer's own cooldown. In the last 25 minutes it was detected 7 times, 1:51 to 3:47 apart, which fits its 90-second cooldown.

As an independent check, we measured how closely the raw waveform at each detection matches the Wowhead file (normalized cross-correlation), and compared that with 150 random moments from the same stretch. A real playback of the file should score above every random moment.

Stream timeDetectedMatching hashesWaveform matchBest randomResult
6:36:59Polymorph500.9470.270confirmed
6:43:28Recklessness210.2990.279confirmed
6:46:19Recklessness190.3480.279confirmed
6:48:08Recklessness150.4500.279confirmed
6:50:07Recklessness150.3130.279confirmed
6:53:57Recklessness120.2790.279likely
6:57:14Recklessness190.3240.279confirmed
6:51:02Fear100.1100.150not confirmed

Detections with 12 or more matching hashes were real. Detections at 10 or fewer were mostly noise: 1,105 of the stream's 1,159 calls had only 8–9 matches, scattered across spells nobody in that stream was casting.

What we learned

Next