Author Topic: KQ5 audio resources i.e speech  (Read 8514 times)

0 Members and 1 Guest are viewing this topic.

Offline AndrewZealand

KQ5 audio resources i.e speech
« on: February 19, 2017, 09:58:44 PM »
I was watching the awesomely funny let's player Lucahjin entertain herself by walking Graham off a cliff in KQ5 about 50 times in a row  ::)


Lucah wished she could change the sound clip from Graham's "Arrrggggghhhhhh!!!!!!". I wanted to change it to "Damn you Lucahjin!!!!!!!", but I can't get SCI Companion to read AUDIO001.MAP or AUDIO001.002 and list all the clips as with KQ6. Has anyone found a way to play and edit KQ5's speech clips in SCI Companion?



Offline troflip

Re: KQ5 audio resources i.e speech
« Reply #1 on: February 20, 2017, 11:12:36 AM »
Yeah, SCI Companion doesn't support the audio001.map. It's only used in KQ5 and Jones, as far as I know - just haven't gotten around to it. If the format is similar to other games (I don't know if it is), it should be straightforward to add.

To work around this, you might be able to use a SCI1.1 game and create a new audio resource and save it as a patch file - then copy it to the KQ5 directory (renaming it to correspond to the KQ5 naming scheme). I have no idea if this will work, but if it does, you'll feel like a hacker extraordinaire...

Check out my website: http://icefallgames.com
Groundhog Day Competition

Offline Kawa

Re: KQ5 audio resources i.e speech
« Reply #2 on: February 20, 2017, 05:30:46 PM »
Don't forget to do the *hacker voice* "i'm in" thing :3

Offline AndrewZealand

Re: KQ5 audio resources i.e speech
« Reply #3 on: February 21, 2017, 05:12:02 AM »
Yeah, SCI Companion doesn't support the audio001.map. It's only used in KQ5 and Jones, as far as I know - just haven't gotten around to it. If the format is similar to other games (I don't know if it is), it should be straightforward to add.

To work around this, you might be able to use a SCI1.1 game and create a new audio resource and save it as a patch file - then copy it to the KQ5 directory (renaming it to correspond to the KQ5 naming scheme). I have no idea if this will work, but if it does, you'll feel like a hacker extraordinaire...

Thanks Mr. Troflip. I'll try out that hack at some point. I realized a different way to hack AUDIO001.002. The free audio editor Audacity can open and play "raw audio" i.e uncompressed audio. The file is only 35 minutes long, but it's sped up, so really it's about 2.5 hours of voice clips and other real audio. Of course you have to go through the file to find the clip you want to change and when you change it, you need make sure the replacement clip is of about the same length or it can mess the game up i.e the start point of the clips changes and so the game plays the wrong clip for the scene or cuts off part of the clip and adds part of another clip. Saving the edited AUDIO001.002 is also a bit of a problem. If you save in the "raw audio" or WAV formats and use the setting "unsigned 8-bit PCM" the game plays the audio ok, but it ends up with a bit of hiss, so the quality is inferior. I'm hoping that your hack, Mr. Troflip, will be even better i.e no inferior audio.
« Last Edit: February 21, 2017, 05:28:33 AM by AndrewZealand »

Offline Kawa

Re: KQ5 audio resources i.e speech
« Reply #4 on: February 21, 2017, 07:09:10 AM »
If you're opening raw uncompressed audio and it's sped up, you've got the wrong frequency. Perhaps you loaded it as 22k, since the actual sounds are 11k. That oughta simplify things a little bit.

And yeah, 11k 8-bit would sound hissy.


The audio files, if they can be loaded like external patches, would probably be "<unpadded number>.aud". There's a resource named 1.aud which describes the baker, up to 10126.aud which is part of the ending.
« Last Edit: February 21, 2017, 07:11:17 AM by Kawa »

Offline AndrewZealand

Re: KQ5 audio resources i.e speech
« Reply #5 on: February 21, 2017, 07:19:46 AM »
If you're opening raw uncompressed audio and it's sped up, you've got the wrong frequency. Perhaps you loaded it as 22k, since the actual sounds are 11k. That oughta simplify things a little bit.

And yeah, 11k 8-bit would sound hissy.


The audio files, if they can be loaded like external patches, would probably be "<unpadded number>.aud". There's a resource named 1.aud which describes the baker, up to 10126.aud which is part of the ending.

I didn't take much notice of the sample rate. Actually it was 44.1k so very fast. I know what to do about that now, thanks.

Offline Kawa

Re: KQ5 audio resources i.e speech
« Reply #6 on: February 21, 2017, 10:14:47 AM »
Confirmed my earlier post. I used SV to extract 1.aud but saved it as 10101.aud. The moment the intro movie starts, (the "Castle Daventry" scene), I got the baker's description instead of the music. Thus, if you were to identify the number for Graham's cry, extract it, and replace it (minding of course the file header data such as length) you're set.

Edit: turns out there doesn't seem to be any length data in the aud file itself.

Also, the whole thing where Mordack appears and spirits away the castle? Skipped. The baker's description is just long enough to have "Castle Daventry" appear, and it skips directly to Graham walking around in the woods.
« Last Edit: February 21, 2017, 10:26:04 AM by Kawa »

Offline Kawa

Re: KQ5 audio resources i.e speech
« Reply #7 on: February 21, 2017, 11:04:18 AM »
Quick proof of concept, confirming that the length of the aud file itself is all the game needs, I recorded my own 10101.aud, with the expected rate and bitdepth:



 If I minded my timing, I could've replaced the whole scene with mouthnoise.
« Last Edit: February 21, 2017, 11:12:14 AM by Kawa »

Offline OmerMor

Re: KQ5 audio resources i.e speech
« Reply #8 on: February 21, 2017, 01:07:30 PM »
 ;D

Offline AndrewZealand

Re: KQ5 audio resources i.e speech
« Reply #9 on: February 21, 2017, 08:50:01 PM »
Confirmed my earlier post. I used SV to extract 1.aud but saved it as 10101.aud. The moment the intro movie starts, (the "Castle Daventry" scene), I got the baker's description instead of the music. Thus, if you were to identify the number for Graham's cry, extract it, and replace it (minding of course the file header data such as length) you're set.

Edit: turns out there doesn't seem to be any length data in the aud file itself.

Also, the whole thing where Mordack appears and spirits away the castle? Skipped. The baker's description is just long enough to have "Castle Daventry" appear, and it skips directly to Graham walking around in the woods.

I may still have a go at this hack. Graham's scream comes at 3m25.5s of AUDIO001.002(when loaded into Audacity at the correct sample rate, 11k). I got a good laugh by replacing it with an audio clip from Tango & Cash(1989)  ;D I want record myself shouting something like "Not again Lucahjin!!!" or "Stop killing me Lucahjin!!!!" as a gift for her :)

Offline Kawa

Re: KQ5 audio resources i.e speech
« Reply #10 on: February 21, 2017, 08:59:17 PM »
If only we knew which number that was...


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.035 seconds with 22 queries.