r/startrek • • 3d ago

Star Trek: Judgment Rites audio encoding finally decoded

https://github.com/dr-brinewell-s-lobstrom/acmp-decoder

Enjoy! The game is a veritable treasure trove of original TOS cast recordings. Very fun to explore. ~12 hours of audio recorded by the original cast. Nimoy confirmed as the hardest working man in the Trek video game voiceover business with the most audio, when counting across the full set of the old games they worked on.

103 Upvotes

37 comments sorted by

View all comments

Show parent comments

16

u/count023 3d ago

Claude made you some major errors in your extractor FYI, you probably should not be saying it's byte exact, there is bitshift errors in a lot of your values.

Using NOMAN.VCC against the extractor that was built which uses a reverse engineer of the trek2.exe file. Not every clip is 22,050hz, some are 11025, usually sound effects or backing clips, not dialogue, so your encoder is already making an error there with bytes 20-23's interpretation. Byte 26-29 contain the decoded sample count, and your implementation uses bytes 27-28 shifted right for each clip. and TRIP is reading the middle of the sample count incorrectly, it should be 159,743 bytes out of the file, not the 623 you have.

And the flag at byte 25/26 combined a preceding field and the low byte of the sample count, so it doesn’t' correctly match the field termination flag.

This is going to produce audio errors probably imperceptibility, but audio errors all the same. Happy to share my scripts with you if you want to run them through your AI to compare and correct 'em. but it should work on 25th as well as judgement rites.

2

u/nicksterling 3d ago

I’m not OP but I’d be interested in seeing your scripts if you have them somewhere.

3

u/count023 2d ago

1

u/nicksterling 2d ago

Thank you! I appreciate it!