Page 1 of 1

Witcher 2 w2speech file

Posted: Fri Jan 25, 2013 12:03 pm
by tomatofarmer
The w2speech files contain localized dialogue. It would be great to be able to extract a specific dialogue for use in mods (like the Witcher 2 experience in Skyrim).

Does anyone know what format the audio is stored?

(updates)

I think it's MPEG layer 2 @ 48000 (or at least it can be decoded as that). There are at least 21,568 individual samples in there.

A voice over (VO) in the game is referenced as:

VO_<1>_<2>_<3>

1 = id of voice tag
2 = ??? set or scene # ???
3 = line number

example:
VO_TRIS_300202_0343 (from q104_triss_interaction_oneliner.w2scene)
1 = Triss
2 = ??? (all voice overs in a scene usually have the same number e.g. 300202)
3 = Line_343

I'm having a hard time figuring out where that second number is stored. In scenes,it appears to be a set of related dialogues but I can't find a corresponding entry in the w2strings file. I also can't seem to find a reference for non-scene voice overs (like background chatter in a town).

I think I'm missing a mapping index that joins the two. It's possibly embedded in the w2speech file - there's about another 120MB or so that is unaccounted for. Any ideas/help?

Is anyone participating in the RedKit beta that could share some light?

Re: Witcher 2 w2speech file

Posted: Mon Dec 06, 2021 9:14 am
by micTronic
Sorry to necro this topic, but there is little information available on w2speech files out there, and I'd really love to extract some of the voiceovers.

@tomatofarmer, did you by any chance manage to learn more about the file format of w2speech files? The header is still not clear to me, but I'm not an MP3 expert, so I'm not sure how to find the individual samples inside these large files...

Or maybe anyone else is aware of a tool that has been released in the meantime which might do the job? gibbed RED tools don't seem to be able to. There are tools for the successor's w3speech, but the format appears to be entirely different.

Re: Witcher 2 w2speech file

Posted: Tue Dec 07, 2021 6:01 pm
by micTronic
Back to answer my own question...

After some experimentation, it seems that REDkit will actually extract all speech right after being installed. Easy enough :D

Re: Witcher 2 w2speech file

Posted: Thu Dec 09, 2021 3:41 am
by nikich340
It only contains already extracted samples. You still can't extract, for example, russian w2speech.

Re: Witcher 2 w2speech file

Posted: Thu Mar 17, 2022 11:33 am
by micTronic
In Steam, just change your language to the one you wish to extract.
Then start the editor, or run the command

Code: Select all

"<YourSteamLibrary>\steamapps\common\the witcher 2\bin\editor.exe" exportstrings exportvo
(this is what it does on first start anyway). It will extract whichever language you have selected.