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?
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
Witcher 2 w2speech file
-
- n00b
- Posts: 12
- Joined: Tue Dec 15, 2020 11:28 pm
- Has thanked: 21 times
- Been thanked: 3 times
Re: Witcher 2 w2speech file
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.
@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
It only contains already extracted samples. You still can't extract, for example, russian w2speech.
-
- n00b
- Posts: 12
- Joined: Tue Dec 15, 2020 11:28 pm
- Has thanked: 21 times
- Been thanked: 3 times
Re: Witcher 2 w2speech file
In Steam, just change your language to the one you wish to extract.
Then start the editor, or run the command
(this is what it does on first start anyway). It will extract whichever language you have selected.
Then start the editor, or run the command
Code: Select all
"<YourSteamLibrary>\steamapps\common\the witcher 2\bin\editor.exe" exportstrings exportvo