Storing Files on an Audio Cassette

37,464

54

27

Published

Introduction: Storing Files on an Audio Cassette

About: I have no interest in friends, women or men. Although friends are nice to have, I really could not care less what anyone thinks of me and I can get on perfectly well without friends. Getting drunk, wasted or...


This will show you how to store any type of file on an audio cassette. Depending on whether you modify the cassette recorder or not, you can get around 1.5 megabytes on a tape. I can get this much space because I increased the speed of the motor inside the recorder to its maximum by jamming a piece of tin foil in the hole at the back of the motor. I also change the sample rates in Audacity to 132300Hz which lets me write the files to the tape much faster. When I record the files, they are recorded at 132300Hz and then the rate is set to 22050 to slow it back down to the rate at which the program can decode it. These modifications are not needed though if you are just experimenting with small files.

You will need:

A cassette recorder with a line in or microphone socket

KCS08 an old program which converts the file into sound for storing. I can not find this program on line anywhere now so I have uploaded it here.
Here is a website with a detailed description of the software:
ftp://ftp.taygeta.com/pub/forth/compilers/native/dos/DXForth/kcs08.txt

The picture of the program will show you what parameters are available.

Audacity
http://audacity.sourceforge.net/

An audio cable to connect the cassette recorder to the line in socket on the computer

Step 1: Encoding Files to Wav

In the attached zip file on the intro, you will find the program. To encode the included bitmap image, simply double click on encode.bat. The program will then create a wav file.

To edit the batch file, right click it and select edit.
Here is what is currently in the file:
KCS -M -Y -U -L5 1.bmp 1.wav

To encode something with a different name or extension, change the 1.bmp which is the input file, and 1.wav which is the output file to a file name of your choice.

Step 2: Recording the Wav Files to Tape.

Open the wav file with Audacity and set the system volume to full. Connect the earphone socket from the computer to the line in on the cassette recorder. Press record and wait a few seconds. Press play in Audacity and wait until the file ends. Stop the recorder a second after the file ends.

Step 3: Reading and Decoding the Files

To get the files off the tape, you need to connect the earphone socket on the cassette recorder to the line in or microphone socket on the computer. Once you have done this, go into the sound properties in the volume control in Windows and select your recording device. Once you have the settings open, select listen to this device in the listen tab. Set the project rate in Audacity to 22050, Rewind the tape, press record in Audacity and press play on the cassette recorder. Adjust the cassette recorder volume until it is near the top of the sound trace in Audacity. Do not make it too high. After adjusting the volume, rewind the tape, discard the current recording and record the whole thing into Audacity at the same level. Once done, save it as a wav file under the same name as is in the batch file. In this case it is 1.wav. Run decode ignore errors.bat and wait while it decodes. Once it is done, you should see your output file in the same folder as KCS08.

Here is what is inside decode ignore errors.bat
Just change 1.wav and 1.bmp to names of your choice.
KCS -Y -U  1.wav 1.bmp

Share

Recommendations

  • Oil Contest

    Oil Contest
  • Creative Misuse Contest

    Creative Misuse Contest
  • Water Contest

    Water Contest

27 Discussions

I have the same problem. Tried multiple cables, multiple casettes, the same result. I encoded a small file. I converted the generated wav file, and it was perfect.

2 replies

Now that I have a 64-bit Windows 10, the KCS software is not working and something tells me that if I attempt to use it in DOS VM or DosBox I would get a nightmare.

any way do decrease bits per second i can never get it to work in any other way than decoding the generated wav file but even something like loopback that would have better quality than a cassette doesnt decode

1 reply

ok i fixed all problems it was audacity not properly converting to 8 bit sound and alsoit seems to store data in a extremely sped up morse code from what i can tell

Does anyone know I way I can run KCS08 on 64-bit Windows 10? Every time I try running it, it gives me an error saying that it's not compatible with a 64-bit system. Has anyone found a way to run it on a 64-bit computer?

1 reply

If any of you self proclaimed "old timers" really know about old computers, you would know that the old IBM computers used punch cards and punch tape. Cards can hold about 1 kb per 300 or so cards and read/write speeds are about 10 bytes per second. Tape could read/write at roughly 2 bytes per second and since most tape was reeled up in spools of about a 1000 yards so maybe you can fit a kilobyte on a reel of tape.(which by the way, was 100 pounds.)

For the kids reading, "audio cassettes" were rewritable audio storage media that existed before iPods ;)

Thanks for the flashback to the days of waiting ten minutes to load a game on my BBC micro... (shudder)

3 replies

A commodore 64 takes a half hour to load a 60 kb game. (also shutter:)

I have read that British, BBC or another organisation did a cool thing like "airing" an application from FM radio at late night, you plugged your computer to radio instead of tape and there you had your application.

They also distributed shareware with mags using paper like thin vinyls, carrying data in audio.

People used cassette tape because it was cheap, a diskette drive for a 8 bit Atari or Commodore was more expensive than the freaking computer itself.

I was born in 1999 and I started out with floppy disks and CD-RW. IBM and some other company are developing a tape drive that will allow 32 TB of storage. When I heard that Music on tapes were becoming no longer available, I wanted to grab every audio tape I could see when I went garage saleing with my grandfather.

Amazing indee, tell me please, if i Do want toget 1.5Mb from a tape, what should i do to my cassette drive?, also, what is the data capacity for the different sizes? (60/90/120).

Thanks a lot! :D

1 reply

Apparently nobody likes you since there are no replies. And to fit more stuff on your cassette, slow the motor down somehow.

Shades of my first home computer: TRS80 COCO. If the computer missed the EOF flag, all your work was toast! Ah the good old days. It had 4K of RAM and upgrading to 16K of RAM cost almost as much as the computer itself!

Thanks for your post!

3 replies

Ditto, I had a TRS-80 clone - cassette based storage - aaah what fun! NOT!
(my code was it really 32 years ago???) Do you remember Micro 80 magazine? best value for money computer magazine ever!

Everyone purchased the best cassette brand once they typed in an app from magazine for hours, line by line. Funnily enough, if you didn't have a high end cassette deck, that chrome or metal tape created issues with the cheap mechanism :-)

Glad you like it. I did not create the program, I just created the batch files to make it easier to use.

0
user
AtariM

2 years ago

wouldnt speeding up the cassette make less storage

1 reply

because the faster the tape is the farther apart the bits are