Monday, January 9, 2012

How can I extract the full audio or get subtitles of GLaDOS's sentences in Portal 2?

Question

I started playing Portal 2 and GLaDOS voice and dialogs are simply amazing.

I would like to hear or read again some of her sentences. Is it possible extracting them in audio or text form, from some Portal 2 files?

Answer

Use GCFScape and open up the Portal 2 content file, found at \steamapps\common\portal 2\portal2\pak01_dir.vpk (for some reason it's unlike TF2 and HL2 which use .gcf's)

There will be a directory structure visible in the program, browse to \root\sound\vo\ and go nuts with probably close to 1000 audio files in a couple folders:

\root
  \sound
    \vo
      \announcer
      \cavejohnson
      \core01  
      \core02  
      \core03
      \glados
      \turret_defective
      \wheatley

Core 1 is the "space" sphere, 2 is the "fact" sphere, and 3 is the "adventure" sphere. The final song is \root\sound\music\portal2_want_you_gone.wav, and some other talking stuff (turrets mostly) are in the \root\sound\npc\ folder.

Outside of the .vpk with the audio files, the subtitle file can be found at \steamapps\common\portal 2\portal2\resource\subtitles_english.txt (or _czech, _danish...) You can actually use this to quickly find an audio file by searching for a word or sentence fragment, e.g. "nine":

"announcer.openingcourtesy01"   "<clr:250,231,181>Announcer: Good morning. You have been in suspension for nine nine nine... nine nine ni- This courtesy call is to inform you that all test subjects should immediately vacate [FADES OUT]"

The related audio file would be in the .vpk, \vo\announcer\openingcourtsey01.wav

No comments:

Post a Comment