Or how to load a cassette game on an Amstrad CPC 464 with an iPhone and a FLAC file…

Preserving cassette tapes

Lemmings cassette for the ZX Spectrum (Psygnosis, 1991)In the ’70s and ’80s, software for home computers was sold on ordinary audio cassettes, which were read by tape recorders connected to the computer.

The .TZX data format, created by Tomaž Kac (the current revision, 1.20, dates from 2006), was designed to preserve every audio cassette that contains software. It was mainly designed for the ZX Spectrum (specification here), and it simply turns what was originally analog audio into a data file…

With the rise of emulators, almost all the software available on tape was converted into files one way or another.

Someone adapted the .TZX format to Amstrad CPC machines: the result is the .CDT format, which is basically a .TZX file with some extra information for Amstrad machines. Specification here.

But what if we wanted to go the other way?

What if we took one of these CDT files, turned it back into an audio track (a FLAC or a WAVE file) and had a real Amstrad computer read it?

CPC 464 music!

Amstrad CPC 464 with colour monitor showing the BASIC promptLet’s start with the CDT files: cpc-power.com has thousands of them, all carefully catalogued and verified (today the site lists more than 20,000 programs).

Now we just need to turn them into audio files, preferably in FLAC format, so that no information is lost to compression.

A few tools help us here. They were originally designed for the Spectrum, but they work perfectly for the Amstrad too.

PlayTZX is a PC/DOS program that converts a TZX or CDT file into a .VOC or .AU audio track. You can find several versions among the utilities listed on World of Spectrum, some of them adapted to run under Win32/Cygwin. It runs from the command line and is very simple to use:

Usage: playtzx [switches] file.tzx [output.voc|output.au]

Switches: -voc Create a .VOC file instead of audio output
          -au Create a .au file instead of audio output
          -freq n Set sampling frequency to n Hz (22050Hz or 44010Hz)
          -info Show extensive Info on TZX file
          -one Show One line of Info per block (condensed form)
          -x eXpand the Groups in one line mode
          -b n Start replay/conversion at block n
          -e n End replay/conversion after block n
          -p Wait after each page of Info
          -128 Work in 128k mode

For example, to create the .AU file of Bubble Bobble:

playtzx -au -freq 44010 "BubbleBobble (UK) (1987) [Original] [TAPE].cdt"

Note: a .CDT file is only a few tens of KB. The matching audio file will be several tens of MB.

Z:>playtzx -au -freq 44010 "BubbleBobble (UK) (1987) [Original] [TAPE].cdt"

ZXTape Utilities - Play TZX , TZX to VOC Converter and TZX Info v0.12b for Linux

ZXTape file revision 1.12
Number of Blocks: 60

Starting playback on CoreAudio using 44010 Hz frequency.

Block   1:    Pause                 Length: 0.317s
Block   2:    --------------------  Length:   263   Speed:  72% ,Pause: 0.016s
Block   3:    --------------------  Length:   263   Speed:  72% ,Pause: 10.284s
Block   4:    --------------------  Length:   263   Speed:  72% ,Pause: 0.016s
Block   5:    --------------------  Length:   521   Speed:  73% ,Pause: 3.976s
Block   6:    Pure Tone             Length:  4998
Block   7:    Pause                 Length: 0.008s
Block   8:    --------------------  Length:   308   Speed: 106% ,Pause: 0.013s
(...)
Block  58:    --------------------  Length: 12290   Speed: 100% ,Pause: 3.359s
Block  59:    --------------------  Length:     7   Speed: 100% ,Pause: 0.914s
Block  60:    --------------------  Length:  1122   Speed: 100%

A few remarks:

  • .VOC is a proprietary Creative Labs format used by the SoundBlaster family of sound cards. Really old!
  • .AU is a slightly newer format (from 1992) by Sun Microsystems, designed for the first web pages of a newborn Internet.

Both formats can be played with VLC. If you want to convert them to more modern formats, you can use the excellent GoldWave (now paid software) or Audacity, which opens .AU and .VOC files directly and exports to FLAC without any plug-in.

Audacity showing the Bubble Bobble tape audio converted from a CDT file

All that’s left is to save our FLAC file! In this example, an 85 KB file with 60 blocks produced a 15 MB FLAC file and a WAV file of about 25 MB!

Feeding a FLAC file to an Amstrad CPC 464

We have a lossless audio file. How do we get a computer from 1984 to read it? With this:

Car audio cassette adapter used to load games on the Amstrad CPC 464

…and with the help of some much more modern gear!

These “fake cassettes” have an analog audio input through an ordinary headphone jack. Just connect it to a PC, a smartphone or a tablet that can play the audio file. In this video I used an iPad and an iPhone, with the audio files loaded from the cloud!

More retrocomputing videos on my YouTube channel.
A tip: to play the FLAC file, choose an app that does not compress the audio on the fly and sends the file bit for bit, with no loss of information (today I recommend VLC, free for iOS and Android).

Update November 2026: phones and tablets without a headphone jack (iPhones from the iPhone 7 onward and many Android devices) need a USB-C (or Lightning) to 3.5 mm jack adapter, for example the one from Apple or the one from UGREEN (also on AliExpress). Avoid Bluetooth cassette adapters: they compress the audio with some quality loss, and loading may fail.

You can buy a wired cassette adapter on Amazon for a few euros:

NOTE: the playtzx program can “play” a .cdt file directly, without going through an .AU file and then a .FLAC file. This way you just connect the cassette adapter’s jack to your PC and load the program on the fly. Simply leave out the -au (or -voc) option on the command line.

Gallery

Other tools

CDT2WAV 1.4 playing a CDT file on WindowsA few other tools worth mentioning, available here:

  • CDT2WAV: a simple player that plays CDT files directly on a Windows PC, converting them to WAV on the fly
  • PlayTZX for macOS: the same as its DOS/Windows counterpart
  • WinTZX: a complete application that creates WAVE or VOC files directly through a handy GUI.

Update November 2026: today there are also modern command-line tools for Windows, macOS and Linux: rtzx (Rust), which also converts and plays CDT files, and tzxtools (Python, tzxplay command), designed mainly for the Spectrum.

A few games

As an Amazon Associate I earn from qualifying purchases. Some links (Amazon and AliExpress) are affiliate links: they cost you nothing and help keep this blog running.