I was recently working on my game for the Speccy 128K (AI-assisted). And when it became obvious that the file would be around 100 KB, I wondered whether it would be a nightmare to load from tape on real hardware.
Back in the day, with my Spectrum 48K, I had multiple games (pirated) that were written to tape from TR-DOS snapshots, so each was 48 KB, and each took around 4 to 5 minutes to load. Yet, every time the freezer in our kitchen started its pump, my deck emitted a short noise, ruining the loading process. My father noticed it and taught me to unplug the freezer during loading. So, one weekend, my parents returned home to find the freezer unplugged and a big puddle on the floor. Sure enough, I'd forgotten to plug it back in.
These days, remembering all of that, I asked AI to create a robust tape format that was faster than "native ZX" and packed with features.
Long story short, the result can be found here: https://github.com/JSmith01/zx-p4-tape
There are two demo tapes, in TZX and PZX formats. I encourage people with real hardware to try them on a real tape deck. As for emulators, I found that ZEsarUX doesn't handle TZX properly, although PZX loads fine. Fuse and Xpeccy-plus work just fine.
The format itself is twice as fast (it uses four signals for two bits per signal, compared to one bit per signal in the "native" format). It also supports chunked loading, which allows for faster in-loading corruption detection and can tell the user how far to rewind. It can also use parity chunks, allowing the restoration of one damaged chunk out of eight. Different simulations suggest that the format would very likely have the same resilience to "bad decks" as the "native" format (except for lower jitter tolerance).
I also tasked AI with finding prior art, so it gathered some historical evidence. Yet, nothing exactly matching this format has been found, despite my thinking I had seen a suggestion of transmitting two bits per signal in the Russian ZX Review magazine in 1994.
The format itself is nothing particularly complicated and, from today's point of view, could have been invented back in 1981, when the Spectrum was designed. We could have had a WAY better tape experience decades ago.
To sum up, this was a really interesting exercise, and I learned a lot while doing it. I plan to use the format in my upcoming game and hope someone else will find this code useful for their projects.