Perfare / UnityLive2DExtractor

Unity Live2D Cubism 3 Extractor
MIT License
526 stars 92 forks source link

How do I extract audio files? #23

Open SealTart opened 1 year ago

SealTart commented 1 year ago

I'm trying to extract audio files from Azur Lane, specifically the voice lines. I don't know where the files are stored and I'm not sure if I'm extracting from the right folder.

AssetStudio

I've tried to use the AssetStudio program to extract them as well, but I am unsure as to what files/file extensions actually contain the audio (voice lines). When the file exports finished, I don't see any files with file extensions that contain audio (or I don't know which ones contain audio).

Note: I can't create an issue in AssetStudio repository, so I'm creating it here as it is somewhat related.

I'm currently extracting from the Android -> data -> com.YoStarEN.AzurLane -> files -> AssetBundles folder through an Android emulator. I'm not sure which folder within the AssetBundles stated above contains the voice lines.

.obb:

There is also a related Azur Lane file in Android -> obb -> com.YoStarEN.AzurLane -> main.62016.com.YoStarEN.AzurLane.obb that is 1.53 GB and I am unsure if this may contain the audio files (voice lines). I'm not sure if there is a correct way to extract from this. I've tried changing the file extension to .zip and extracting from that but got files that all ended in .ys. Then I tried extracting from that and got some different files with extensions like .resS and files that don't have file extensions.

Final Remarks

If there are specific file types to look out for, naming patterns (for files), specific procedures to follow, or any information on this, please let me know. If there is a tutorial out there that you can point me to, that would be helpful. Any help is appreciated.

Note: no problems with extracting the live2d files. I'll like to pair them up with the voice lines/audio.

kiraio-moe commented 1 week ago

File Info

The BGM, voice line and other audio data are stored in com.YoStarEN.AzurLane/files/AssetBundles/cue/ with .b extension (CRI ACB file). Each ACB file can contains multiple audio data (CRI HCA file). The voice lines are named as cv-{ship_id}.

Extraction

Before doing extraction, you should checkout the cue folder in the .obb file. There's some audio files in there. You don't want to miss that.

Prequisite

Step-by-step

Extracting ACB file

Decoding HCA file