You can use it to create OSI compatible audio for any data file you happen to find, or decode those old tapes without having working hardware.
It will decode pretty much any WAV PCM audio and will encode any data into 22050 samples per second 8 bit PCM WAV 300baud KCS format.
The encoder is built using some tech from Ed's CUTS encoder/decoder (which unfortunately doesn't work on 64bit windows). The encoder uses a fixed waveform which compresses greatly. The decoder is built from scratch. It uses the rising edge of the waveform to calculate frequency, so audio with DC bias or hum should not affect operation.
One unique feature is the ability to append WAV audio data. The allows you to create a tape with a loader, a pause and data to follow.
With Windows Explorer you can drop a file onto OSIKCS.EXE and it will decode the wav file creating a .txt file with the same name, or drop any other file on it to have it encode into 300baud KCS WAV format. Of course you can use the command line to specify many options. The diagnostics mode is useful to see where in the audio stream any decoding errors happen.
There is a Mac and PC build along with source that should work on any other platform.
Code: Select all
OSIKCS - Transcodes between Kansas City Standard audio & data file for OSI Usage: OSIKCS [options] infile [outfile] If [outfile] is not specified, a target file is automatically created based on input filetype -Rn Rate for en/decoding 0=300/1=600 (default: 0) -F Force overwrite of existing output file -A Append to output file (WAV or data)(WAV must be 22050 8bit mono) Encode options: -B BASIC processing -add NULS between <CR> & <LF> like OSI BASIC -Nn Number of Nulls (default 10) -O Odd parity -E Even parity -D 7 Data bits -S 1 Stop bit -Wn padding in msec after each serial Word -Pn Padding in msec after each EOL -Ln Leader time (in msec) defaults to 2000 -Tn Trailer time (in msec) defaults to 1000 -U use sine Tone instead of precompensated square wave -Cn select WAV Channel for decode 0=Any 1=Left 2=Right -X Decoding output diagnostics Default encode: create 22050 8bit mono WAV file @300 baud 8N2 Default decode: create data file from 300 baud 8N2 WAV file