AtariVox Club blurb

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nathan Strum

Hi Andrew,

I'd like to add a post to the AtariVox Club on AtariAge about this. However, instead of me trying to digest and translate all of this into something intelligible, would you be able to write something up I can post over there?

Thanks!

- Nathan Strum

Andrew Davie

#1
Quote from: Nathan Strum on 03 Dec 2026, 09:56 AMHi Andrew,

I'd like to add a post to the AtariVox Club on AtariAge about this. However, instead of me trying to digest and translate all of this into something intelligible, would you be able to write something up I can post over there?

Thanks!

- Nathan Strum


Written for: AtariVox Club forum members, hobbyists who know the AtariVox but not the internals.


---

**The AtariVox in software: where the SpeakJet emulation stands**

from the AtariVox forum @ https://woodgrain.taswegian.com/index.php?board=49.0

Over the last two months I've been building a software copy of the SpeakJet, the speech chip inside the AtariVox, so that emulators can speak the way the real box does. This effort has involved extensive collaboration with the Claude AI, in an interactive and iterative process to gradually reverse engineer the function of the SpeakJet chip and improve the emulation accuracy. This is a summary of what it does, what it doesn't, how it fits into Stella and Gopher2600, and how close it gets.

**How it was made**

Nothing in it is guessed from the SpeakJet manual alone. I wrote a series of test cartridges (the VoxProbe ROMs) that play every speech sound and sound effect in isolation, at different pitches, speeds and volumes, and SpiceWare recorded them from two real units: an original AtariVox and an AtariVox+. The emulation was then built and tuned against those recordings, sound by sound, and checked against recordings that nothing had been tuned to. The last release was tuned against one unit alone, because an average of two chips is a sound neither of them makes.

The recordings also showed something about the chips themselves. Within one session a unit is very repeatable. Between power-ups the same unit shifts: some sound effects come out a couple of decibels louder or quieter from one day to the next, and that survives a Reset. Two different units differ more again. So there is no single "correct" AtariVox sound, and the target has always been "as close as one real AtariVox is to another".

**What it does**

- All 72 speech sounds (allophones) and all 55 sound effects, including the robot voices, bio sounds, alarms and the DTMF phone tones.
- The controls games use: Pitch, Speed, Volume, Bend, Pause, the Fast and Slow modifiers, Reset, and the chip's Repeat behaviour when the same sound is sent twice in a row.
- The chip's 64-byte input buffer and its Buffer Half Full line. The AtariVox's READY pin comes from that, so a game's handshaking (waiting for the Vox before sending more) behaves as it does on hardware, and a game that overruns the buffer loses the same bytes the real one would.
- The AtariVox's own analogue output stage, measured from the units, so the tone of the sound is the box's and not an idealised chip. The faint edge the chip's 8 kHz sample clock puts on the sound is available as an option; the default output leaves it off.
- Save states, and any number of chips at once.
- A text-to-codes tool, text2speakjet, that turns English into SpeakJet bytes as DASM `.byte` lines or a C array, for anyone writing a game that speaks. It knows Magnevation's own spellings of about 1,400 common words and falls back to a 134,000-word dictionary.

**What it doesn't do**

- The phrases stored in the SpeakJet's own EEPROM (CallPhrase and GotoPhrase) aren't emulated. No 2600 game I know of uses them.
- The Stress and Relax commands do nothing, because the recordings show no measurable change when they are sent.
- The chip's configuration-level features (its serial control protocol beyond the buffer, baud changes, the demo mode) are left out.

**Stella and Gopher2600**

The emulation exists in two forms that produce identical output: a C library (github.com/andrew-davie/SpeakJet, MIT licence) and a Go version, which Steve (JetSetIlly) has taken into his own repository and which Gopher2600 uses.

Gopher2600: speech is built in and on by default in the current development builds, driving the READY line as above, and it replaced the earlier approach of handing text to an external speech program. Version 0.5.8 of the library went into Gopher's source on 1 December. It isn't in the last numbered Gopher release (0.57.2, from August), so for now you need a current build. There is a gain setting in the AtariVox preferences if it's too loud or quiet for you.

Stella: the released Stella doesn't speak on its own. Its AtariVox support can pass the bytes out to a real AtariVox through a serial adapter, and a sample-based speech engine exists only on an unreleased developer branch. I have a Stella build here with the C library in it, and it runs WenHop and the other speaking games well, but the Stella team has not adopted it. The library was written to drop straight into an emulator's AtariVox code (feed it the bytes, pull the samples, read the READY line), so that part is small.

**How close it is**

Every sound is scored against the chip's recordings on a scale where 1.0 means "as far from the chip as one real recording of it is from another". Lower is closer.

```
                        sounds  score  closer than the first release
speech sounds              72    1.01    22 %
sound effects              55    1.45    31 %
all                      127    1.20    27 %
```

So the speech is, on average, about as close to the chip as the chip is to itself. The sound effects are further, and that is where the remaining work would be. Connected speech (whole phrases) is further again than single sounds: the timing of a phrase drifts by a few tens of milliseconds over a sentence, mostly where speed changes or sound effects are mixed into speech.

The included documentation lists things that are still off. Not many.

At this point I consider the emulation much better than just "good enough", and I have ceased work on it. To me, it sounds just like a real AtariVox.

Andrew Davie

#2
Here is a video with sample speech that you might like to link to.
Note: the speech here is entirely auto-generated from text; it's not hand-tweaked to make it more legible, so some of the words are a bit "off". The tool to do this text-to-SpeakJet conversion is included in the GitHub repository tools section.