element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Community Hub
Community Hub
Member's Forum I like how this sounds, but then again, I probably wouldn't
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Community Hub to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 29 replies
  • Subscribers 531 subscribers
  • Views 1969 views
  • Users 0 members are here
  • audio compression
  • cassette tape
  • mp3 to cassette tape
Related

I like how this sounds, but then again, I probably wouldn't

stanto
stanto 10 months ago

It's 3:30am and I've finished fighting with the Baldur's Gate 3 toolkit to edit a mod I'm working on, and a thought hits me.

Wouldn't it be funny to store music on a cassette?

No, not like that.

I'm talking about, digital music. Take say, an MP3 or equivalent, potentially lossy compression audio format - because it would be funnier. Then create an audio file at a low bitrate, depth and frequency. Then have write it to a cassette tape, like in the ZX Spectrum / Commodore 64 days.

Then play it back and decode it on the fly!

I believe it would be an interesting juxtaposition of technology while being a challenge to get the most out of the compression and data rates, and handling errors on the way. Resulting in a pretty hilarious audio file.

Consider it an art piece.

I wonder what the bill of materials would look like for that? I still have some as-new cassettes lying around...

  • Sign in to reply
  • Cancel

Top Replies

  • jc2048
    jc2048 10 months ago +7
    If you want an idea of the circuitry that was originally used in these kind of interfaces, this is a cassette tape interface I built around 1979. I think it might have been based on a Don Lancaster design…
  • jc2048
    jc2048 10 months ago in reply to jc2048 +4
    He included the 'Bit Boffer' in his TV Typewriter Cookbook. So that's where I came across it. Would it work if stanto simply took the analogue bits (with maybe an actual comparator on the input to the…
  • shabaz
    shabaz 10 months ago +2
    BoM could be as low as a sound card and a PC, or a Raspberry Pi (assuming a cassette recorder/player already exists). There are codecs like FreeDV which have a chance to be usable if you're looking for…
Parents
  • battlecoder
    battlecoder 10 months ago

    I did some experiments on digital data storage on cassettes a couple of years ago. Whatever the kind of data you want to store (compressed music, raw samples, etc) keep in mind that you are going to have a VERY low bitrate.

    You can look into how digital data is normally stored in cassettes, and you'll find that they pick a frequency to represent "1" and one to represent "0". You would normally read at least 4 cycles at the slowest frequency to detect a one or zero, so your "baud rate" will be limited by how fast it would be to read 4 cycles of the slowest frequency you select.

    Due to the frequency response of the magnetic substrate, a tape can't record anything above 16 KHz or thereabouts. And at that limit you are already getting a severely attenuated wave that will be hard to tell apart from noise. There are fancier, more expensive tapes with better frequency response, but the average tape was very limited.  So let's say you select 12KHz for "1", and 6 KHz for "zero" (which is already kinda pushing it).

    Because you need 4 cycles of the lowest frequency (traditionally at least; you could try to get away with using less cycles), your highest baud rate in this scenario would be 6000/4 = 1500 bits per second. And that is without considering adding error correcting bits, or start/stop bits, etc.

    Most computers from the 80s that used tapes would use lower frequencies (1.2KHz or 2.4 KHz at most, probably for reliability and to avoid getting close to the point where the tape starts attenuating the wave) and would end up with a baud rate of like 300 bits per second. 600 baud was fast, and 1200 baud was pretty much "turbo".

    If I were you, I'd start by trying to figure out a format/compression that would allow me to represent a song at those low bitrates and check how that sounds, while finding a way to convert "normal" songs to that.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • michaelkellett
    michaelkellett 10 months ago in reply to battlecoder

    There is a good article on theis subject (almost) on Wikipedia:

    https://en.wikipedia.org/wiki/Modem

    It explains how you can get up to 56000 bits per second over a telephone quality audio channel.

    I don't think that anyone ever optimised a codec for audio cassette data recording but since you can get 12kHz audio bandwidth and better than 45dB signal to noise ratio I would guess that  better than 100kbit/s is possible.

    There is an article here

    https://electronics.stackexchange.com/questions/596747/how-much-data-could-be-stored-on-a-standard-compact-cassette-using-modern-encodi

    which discusses the subject froma  different point of view and concludes a (probably) lower rate.

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • michaelkellett
    michaelkellett 10 months ago in reply to battlecoder

    There is a good article on theis subject (almost) on Wikipedia:

    https://en.wikipedia.org/wiki/Modem

    It explains how you can get up to 56000 bits per second over a telephone quality audio channel.

    I don't think that anyone ever optimised a codec for audio cassette data recording but since you can get 12kHz audio bandwidth and better than 45dB signal to noise ratio I would guess that  better than 100kbit/s is possible.

    There is an article here

    https://electronics.stackexchange.com/questions/596747/how-much-data-could-be-stored-on-a-standard-compact-cassette-using-modern-encodi

    which discusses the subject froma  different point of view and concludes a (probably) lower rate.

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • battlecoder
    battlecoder 10 months ago in reply to michaelkellett

    I've not read through the specifics of standard yet, but from a quick glance to the wiki description I assume they were using the amplitude of the wave as well as part of the encoding. Now, I'd assume that at that point encoding the data starts  becoming a lot harder

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube