Being a little proactive to learn it’s usage. trs80-tools works on wav files…not mp3 files.
The cassette player I ordered converts cassette to MP3s. I’m assuming I might have to play with the output volume when creating the mp3 file.
First used ffmpeg to convert mp3 to wav.
ffmpeg -i input.mp3 output.wav
You can also use mpg123, however the input must be (unlike ffmpeg) an mp3
mpg123 -w output.wav input.mp3
I renamed output.wav to in.wav for the below tests
$ ./trs80-tool convert in.wav out.cas
Wrote out.cas: CAS file with 0 files
$
That was expected, because my wav file was a converted music mp3 used for a test.
Some more tests (I started only with a good startrek.cas file)…
trs80-tool$ ./trs80-tool convert startrek.cas startrek.wav
Wrote startrek.wav: Basic file in undefined baud WAV file
trs80-tool$ ./trs80-tool convert startrek.wav output.cas
Wrote output.cas: Basic file in low speed CAS file
trs80-tool$ ls -la
total 84632
drwxrwxr-x 3 bill bill 4096 Nov 12 17:50 .
drwxrwxr-x 8 bill bill 4096 Nov 11 13:54 ..
-rw-rw-r-- 1 bill bill 33329230 Nov 12 08:26 in.wav
drwxrwxr-x 2 bill bill 4096 Nov 11 13:54 old
-rw-rw-r-- 1 bill bill 13839 Nov 12 17:51 output.cas
-rw-rw-r-- 1 bill bill 13839 Jun 8 2022 startrek.cas
-rw-rw-r-- 1 bill bill 4893422 Nov 12 17:50 startrek.wav
-rwxrwxr-x 1 bill bill 48343233 Nov 11 13:50 trs80-tool
trs80-tool$
Very interesting program. Was looking at some of the other options and saw run (a TRS-80 emulator in the shell). So I tried it…
As you can see the .wav file is 353 times larger than the .cas fil
$ ./trs80-tool run +----------------------------------------------------------------+ | | |Cass? | |Memory Size? | |Radio Shack Model III Basic | |(c) '80 Tandy | |READY | |>PRINT 5+4 | | 9 | |READY | |> | | | | | | | | | | | | | +----------------------------------------------------------------+ $