Out now on Steam. The full career is available for Windows today. Get it now

Guide

The caller's voice

On the PC the referee calls the match out loud: every visit's score ("Sixty", "No score", "One hundred and eighty!"), "You require 81" when the next thrower is on a finish, "Game shot!" when a leg is won and "Game on!" at the start of a match. The voice is a caller pack: a small bank of recorded pieces that the game joins into each call as it is needed, so 58 clips (about 0.5 MB) say every score from 0 to 180 and every remainder from 2 to 501.

A mod can add a caller (another accent, a famous-sounding announcer, another language) or replace the game's own. The player picks the caller in Settings > Audio > Caller voice (the row shows only when more than one caller is installed) and sets its loudness with Caller in the same tab (all the way down: no calls at all). The phone has no caller voice yet.

Where the files go#

my-mod/
  audio/
    caller/
      my-caller/          one folder per caller; any name
        voice.json        the pack (below)
        h1.ogg            the clips voice.json lists
        h1_and.ogg
        ...

The game's own caller is core/audio/caller/tvstage/ in the core pack; copy it as a starting point. There is nothing to declare in mod.json. The mod must be a folder (not a zip) and enabled. Packs are found in load order (the core pack, then the mods); a pack whose id is already taken replaces the earlier one (that is how a mod replaces the game's caller), any other id adds a caller. Clips can be Ogg Vorbis (.ogg, recommended), .wav or .mp3.

voice.json#

{
  "format": 1,
  "id": "my-caller",
  "name": "My caller",
  "language": "en-GB",
  "sampleRate": 24000,
  "clips": {
    "lead_require": { "file": "lead_require.ogg", "lead_ms": 0, "tail_ms": 15, "role": "lead" },
    "t50_nf": { "file": "t50_nf.ogg", "lead_ms": 0, "tail_ms": 15, "role": "joined", "onset": "fricative" },
    "u7": { "file": "u7.ogg", "lead_ms": 15, "tail_ms": 0, "role": "final", "onset": "fricative" },
    "s_180": { "file": "s_180.ogg", "role": "whole" }
  },
  "joins": {
    "default": { "extra_overlap_ms": 0, "gap_ms": 0, "curve": "equal_power" },
    "after_role": { "lead": { "gap_ms": 45 } },
    "before_onset": {},
    "pairs": {}
  },
  "compose": {
    "lead": { "require": ["lead_require"] },
    "whole": { "score": { "0": ["s_noscore"], "180": ["s_180"] } },
    "hundred": "h{h}",
    "hundred_and": "h{h}_and",
    "unit": "u{u}",
    "tens": "t{t}",
    "tens_joined": "t{t}_nf",
    "tens_joined_mid": "t{t}_nfm"
  },
  "phrases": { "game_shot": ["s_gameshot"], "game_on": ["s_gameon"] }
}
FieldMeaning
formatAlways 1. A pack with another format is not used.
idThe pack's id: what the setting stores, and what a mod reuses to replace a pack.
nameShown in Settings > Audio > Caller voice.
languageA language tag (en-GB); for your own records.
sampleRateThe rate of every clip, in Hz. A clip at another rate makes the pack unusable.
clips.<id>.fileThe clip's file, relative to the pack folder.
clips.<id>.lead_msThe handle kept before the clip's cut at its start, in ms (15 in the game's pack; 0 for a clip that only starts calls).
clips.<id>.tail_msThe handle kept after the cut at its end, in ms (0 for a clip that only ends calls).
clips.<id>.rolelead ("you require"), joined (a piece that something follows), final (the last word), whole (a call on its own). Picks a join rule.
clips.<id>.onsetThe sound the clip starts with: vowel, glide, plosive, fricative, nasal. Picks a join rule.
clips.<id>.says, cut_fromNotes for people (the words, the line it was cut from); the game does not read them.
joinsHow two clips meet (below).
composeHow a number becomes clips (below).
phrases.game_shot, phrases.game_onThe clips of those calls. Optional: without one, that call is silent and the rest work. phrases.no_score may give "no score" its own clips; otherwise it is the score call for 0.
phrases.checkout_170, phrases.match_won, phrases.match_won_setsOptional whole calls for the moments the game also has its own recorded call for: a 170 checkout ("He's reeled in the big fish!"), the match won in a legs format ("Game shot, and the match!") and in a sets format ("Game, set and the match!"). With one, the pack's call plays and the game's recording does not; without one, the game's recording plays as before. The game's pack has all three.

How a number becomes clips (compose)#

The calls are score (a visit's score, 0-180) and require (the remainder, 2-501). For a number n:

  1. lead.<call>: clips put in front (the game's pack: lead_require, "you require", in front of every require call).
  2. whole.<call>.<n>: a whole-clip override. When the pack lists clips for this exact number, they are used and nothing is built. Any score or remainder can have one: the game's pack has "No score." for 0 and an excited "One hundred and eighty!" for 180. A pack may add, say, an excited "140": ["s_140"] under whole.score, or a "170": ["r_170"] under whole.require (the lead-in still comes first).
  3. Otherwise the number is built: hundreds h = n / 100, rest r = n % 100.
    • a round hundred (r = 0): hundred ("one hundred");
    • else, with hundreds, hundred_and ("one hundred and") and then the rest;
    • rest under 20: unit ("seven", "twelve");
    • a round ten: tens ("forty", said as the last word);
    • otherwise tens_joined and unit ("fifty" + "seven"); after a hundreds clip, tens_joined_mid when the pack has that pattern (the tens word said in the middle of a call starts lower than at the start of one).

In the patterns {h} is the hundreds digit, {t} the tens value (20, 30 ... 90) and {u} the unit or teen (1-19).

A bust is called as "no score". A score of 0 is "no score" too.

How clips join (joins)#

Each clip is cut a little long: the handles (lead_ms, tail_ms) carry on past the cut points. Two clips are joined one of two ways, both plain sample arithmetic (no pitch or speed change):

  • Crossfade (gap_ms 0): the next clip is laid so its start cut lands on the last clip's end cut; the two handles overlap (15 + 15 ms = 30 ms in the game's pack, plus extra_overlap_ms) and are crossfaded, equal_power (cosine and sine gains) or linear.
  • Gap (gap_ms above 0): both handles are dropped, each cut edge gets a 4 ms fade, and gap_ms of silence goes between. The game's pack pauses 45 ms after "you require", as a caller does (whole takes pause 35-55 ms).

A call never starts or ends inside a handle: the first clip's lead handle is cut off (with a 4 ms fade in) and the last clip's tail handle is cut off (with a 30 ms fade out).

The rule for clip a followed by clip b is built field by field, each step overriding the one before: joins.default, then joins.after_role.<a's role>, then joins.before_onset.<b's onset>, then joins.pairs."a+b" (a fix for one pair, e.g. "t60_nf+u8": { "extra_overlap_ms": 10 }).

Recording a pack#

The joins only sound like one call when every piece is cut from inside a real call. A word said on its own ends with a falling, finished tone; joined to another it sounds like a talking clock. So the voice reads 45 whole calls and the pieces are cut out of them.

  • Say every line as a real call: same distance from the microphone, same energy, same pace throughout. No pauses inside a line ("fifty-three" is one word, "one hundred and seventy" one breath).
  • Two or three takes of each line, a second of silence between; keep the take whose pitch sits best with the rest.
  • Mono, 24 kHz or more, 16-bit or better; no music, reverb or compression; half a second of silence at each end.
  • Make every cut before a consonant (before the "f" of "fifty", the "t" of "two"), at a zero crossing, and keep a 15 ms handle past each cut. A cut inside a vowel smears: "sixty" cut from "sixty-eight" carries the "ei" of "eight". That is why the vowel units ("one", "eight", "eleven") are cut after the closure of "and".
  • Keep the loudness balance inside each line: trim and normalise each line as a whole, then cut it.
#Say thisClips cut from it
1Two hundred and one.u1 "one"
2Two hundred and eight.u8 "eight"
3One hundred and eleven.u11 "eleven"
4Twenty-seven.t20_nf "twenty", u7 "seven"
5Thirty-four.t30_nf "thirty", u4 "four"
6Forty-six.t40_nf "forty", u6 "six"
7Fifty-three.t50_nf "fifty", u3 "three"
8Sixty-two.t60_nf "sixty", u2 "two"
9Seventy-five.t70_nf "seventy", u5 "five"
10Eighty-four.t80_nf "eighty"
11Ninety-nine.t90_nf "ninety", u9 "nine"
12-19One hundred and twenty-three, thirty-five, forty-six, fifty-two, sixty-seven, seventy-six, eighty-nine, ninety-four.t20_nfm ... t90_nfm, the tens word of each
20One hundred and seventy.h1_and "one hundred and", t70 "seventy"
21Two hundred and forty.h2_and, t40
22Three hundred and sixty.h3_and, t60
23Four hundred and twenty.h4_and, t20
24Five hundred and fifty.h5_and, t50
25You require thirty.t30
26You require ninety.t90
27Two hundred and eighty.t80
28You require ten.lead_require "you require", u10 "ten"
29-31You require twelve, thirteen, fourteen.u12, u13, u14
32-36One hundred and fifteen, sixteen, seventeen, eighteen, nineteen.u15 ... u19
37-41You require one hundred, two hundred ... five hundred.h1 ... h5 "one hundred" ...
42One hundred and eighty!s_180, whole
43No score.s_noscore, whole
44Game shot!s_gameshot, whole
45Game on!s_gameon, whole
46He's reeled in the big fish!s_170, whole (phrases.checkout_170, optional)
47Game shot, and the match!s_match, whole (phrases.match_won, optional)
48Game, set and the match!s_setmatch, whole (phrases.match_won_sets, optional)

_nf is a tens word that joins on at the start of a call, _nfm the same in the middle of one. Excited calls are recorded and played whole; add as many as you like under compose.whole.

Another language changes only compose (and the lines you record): the clip ids are yours to choose.

Loudness and format#

  • The game measures each pack's loudness (the RMS of its clips over the 20 ms stretches louder than -50 dBFS) and brings it to the core pack's tuning value caller.loudnessDb (-23 dBFS), by at most 12 dB, before the Caller volume. So record at a sensible level (peaks below -1 dBFS, speech around -20 dBFS RMS) and keep the clips level with each other; the overall level is taken care of.
  • One sample rate for every clip, named in sampleRate (24 kHz mono is plenty: the game's pack is 474 KB).
  • Stereo clips are mixed to mono.

Checking a pack#

When a match starts the game checks the chosen pack: every clip that any call can reach (each score 0-180, each remainder 2-501, the game shot and game on phrases, and the optional 170 and match-won phrases when the pack has them) must be listed in clips and its file must be there; then each clip is decoded. A pack with a fault is not used: the caller is silent (the match never waits for a pack, and never fails because of one), and Settings does not offer it. The faults go to the player log (Player.log, or the Editor log), one line each:

[caller] my-caller: error unknown-clip clip=u7 call=score 7
[caller] my-caller: error missing-file clip=h2 (h2.ogg)
[caller] my-caller: warning no-call call=gameOn
[caller] my-caller: error rate-mismatch clip=t40 (44100 != 24000): the caller is silent
[caller] my-caller: 61 clips ready, loudness -20.7 dBFS, gain -2.3 dB

Codes: bad-json, bad-format, no-id, no-sample-rate, no-clips, unknown-clip (a call needs a clip the pack does not list; the first call that needs it is named), no-file, missing-file, no-call (a call the pack cannot make; a warning for game shot and game on), decode-failed, rate-mismatch, empty-clip. An error stops the pack; a warning leaves that one call silent.

Every line the caller is given is logged too ([referee] Bob, you require eighty-one), and a development build logs each call it plays ([caller] require 81 (1680 ms)), so the timing can be checked without listening.

When calls are made#

  • "Game on!" as the match's first leg starts, at speeds 1 and 2.
  • The visit's score when the visit ends (after the third dart, or a bust: "no score"), for both players, at speeds 1 and 2; at speed 4 only the big ones (140 and up, the 180). Not after a visit that wins the leg.
  • "You require N" when the next thrower steps up on a finish (170 or less, and not the bogey numbers), at speed 1 only.
  • "Game shot!" when a leg is won, at speeds up to 4. A 170 checkout is the pack's checkout_170 call instead, and the leg that wins the match its match_won (or match_won_sets) call; after a 170 that wins the match, the match call follows the 170's. Where the pack has no clip for one of these, it says nothing and the game's own recorded call for the moment plays. The same goes for the 180: the pack's call replaces the game's recording.
  • The match highlights play the same calls (the 180, the 170, the match won) in the pack's voice where it has them.
  • Calls go one at a time with a short gap (caller.gapMs); a call that has waited behind another longer than caller.staleMs is dropped. Simulated legs and matches, Skip and closing the match screen stop the caller.

Written for Darts Player Simulator 0.50.35. Built from the game's own schemas and its base pack.