Skip to content

A lite version voice patch for PC games Sora/Zero/Ao no Kiseki.

License

Notifications You must be signed in to change notification settings

ZhenjianYang/SoraVoice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SoraVoice (Lite)

This project's objective is to bring voice acting to the PC versions of Sora/Zero/Ao no Kiseki from the Evolution version of these games.

All information about this project can be found at SoraVoice (Lite).

NOTE: This project is licensed under the GPLv3. You MUST copy, distribute and/or modify any code or binaries from this project under this license. See LICENSE for details.

About Lite

This is a new (lite) version of the original SoraVoice, by removing some uncommon used features, it has better compatibility and performance. Not like the original one, game update WON'T break the lite one (hopefully).

If you are playing Trails in the Sky series, please use this lite version. Since the original SoraVoice is no longer under maintenance, and doesn't support this series with latest updates.

How to let it work

Things you need:

The Game

Games brought from platforms listed below are supported. Games from other platforms (e.g. Wegame) may not be supported.

Game Title Publisher Language Platform
Zero no Kiseki Joyoland Chinese Simplified Joyoland/Cubejoy
Ao no Kiseki Joyoland Chinese Simplified Joyoland/Cubejoy
Sora no Kiseki FC YLT Chinese Simplified
Sora no Kiseki SC YLT Chinese Simplified
Sora no Kiseki the 3rd YLT Chinese Simplified
Zero no Kiseki Falcom Japanese
Trails in the Sky FC Xseed Chinese Simplified Steam, ED6-FC-Steam-CN
Trails in the Sky FC Xseed English Steam/GOG/Humble
Trails in the Sky SC Xseed English Steam/GOG/Humble
Trails in the Sky the 3rd Xseed English Steam/GOG/Humble

SoraVoice (Lite)

Download the latest file at Release, extract dinput8.dll and folder voice to your game's installation folder.

About dsound.dll

For Sora no Kiseki/Trails in the Sky, you can use dsound.dll instead of dinput8.dll, in case you couldn't use the latter for some reasons (e.g. another MOD also uses dinput8.dll). But do NOT try to copy both of them to your game's folder.

Voice Scripts

Voice Scripts are at the very core of the patch, as they call the needed Voice Files line by line. They contain all the dialogues, and because of that, obviously, each set of Voice Scripts is tied to a specific version of the games.

We have two projects related to Voice Scripts:

Download the latest files for your games & languages and extract the whole folder scena into the folder voice/ extracted in the previous steps. Supported languages for each game are also listed at above links.

Voice files

Note: Now this project supports at9 audio files (use FFmpeg as decoder). You do not need convert voice files to ogg format any more, just create a at9 folder under voice folder and move/copy all at9 files into it.
But ffmpeg can not decode ed6501.at9 perfectly, so for this file, it is still recommended to convert it to ogg.

We won't provide any voice files, they can be only extracted from the Evolution edition games (PSVita). Steps:

1. Dump the game's image

You may need a copy of the Evolution edition game and a PSVita with Hankaku installed to do this.
Tutorials can be found somewhere else.

2. Extract data.psarc

Drag & Drop <Evolution Game Folder>/gamedata/data.psarc on PSArcTool.
Or if you have psarc.exe from Sony's PS3 SDK, use this command: psarc.exe extract data.psarc
Note: If you find data0.psarc, data1.psarc, ... in the same folder with data.psarc, then extract them all the same way.

3. Create a folder at9 and move all voice files into it.

Voice files can be found under data/talk/...,you can use this command to move all at9 files with Window Powershell:

Get-ChildItem talk\*.at9 -Recurse | Move-Item -Destination at9\

4. Convert ed6501.at9 to ogg format (Sora no Kiseki/Trails in the Sky only)

  • Tools needed:
    • at9tool.exe, it can only be found in Sony's PS3 SDK.
    • oggenc2

ed6501.at9 can be found under data/bgm/arrange/ or data/bgm/.
NOTE: FC, SC and the 3rd, each game has its own ed6501.at9 (Though file names are the same).

  • at9 to wav: at9tool.exe -d -repeat 1 ed6501.at9 ed6501.wav
  • wav to ogg: oggenc2.exe -Q -q 6.00 -n ed6501.ogg ed6501.wav
    • -q 6.00 sets ogg quality to 6.00, you can choose another value between -2 and 10.

Then create a ogg folder and copy the ogg file into it.

5. Copy/Move folder ogg & at9 into folder voice/

Launch the game

If all goes well, you will see an information of SoraVoice (Lite) in the title bar after launching the game.

About the configuration file

After launching the game, configuration file voice/ed_voice.ini will be automatically generated. Settings listed below:

ShowInfo Show information of SoraVoice (Lite) in the title bar
Volume Volume: 0 ~ 100
DisableTextSe Disable dialog text beep SE. (Voiced lines only)
DisableDialogSe Disable dialog closing SE. (Voiced lines only)
DisableAoOriVoice Disable original scenario voice (Ao only)

Removed features

Comparing with the original SoraVoice, these features are removed:

  • Auto dialogs
  • Configuration Hot Keys
  • Pop up information

External libraries used in this project

  • GoogleTest
  • Ogg
  • Vorbis
  • FFmpeg
    • Static libraries are built with msvc 2022, configuration:
      ./configure --disable-programs --disable-doc \
       --disable-avdevice --disable-swscale --disable-postproc --disable-avfilter \
       --disable-everything --enable-decoder=atrac9 --enable-decoder=vorbis \
       --enable-demuxer=wav --enable-demuxer=ogg --enable-protocol=file \
       --enable-asm --enable-x86asm --toolchain=msvc --disable-debug \
       --enable-gpl --enable-version3
      

Special Thanks

Ouroboros, developed decompile/compile tools for Kiseki series games, and provided many awesome hook ideas.



SoraVoice (Lite)

PC 游戏《空·零·碧之轨迹》系列进化版剧情语音补丁。

您可以在SoraVoice (Lite)获取到关于本项目的全部信息。

注意: 本项目基于 GPLv3 开源协议, 对本项目的任何代码或二进制文件的复制、修改、分发需遵循此协议。 具体细节请参见LICENSE文件。

关于 Lite

这是语音补丁SoraVoice的新版本(lite版)。 在这个版本中,通过移除一些不常用的功能,实现了更好的兼容性以及更少的资源占用。 并且,不同于原版,lite 版会在游戏更新后仍然(大概率)保持有效。

如果您在游玩由 XSeed 发行的《空之轨迹》系列,请使用 lite 版语音补丁。 因为原版SoraVoice已经不再维护,且无法支持最新的游戏补丁。

使用方法

需要的东西:

游戏

本补丁支持从下表中的平台购买的游戏。列表以外的平台(如 Wegame)可能不支持。

游戏标题 发行商 语言 平台
零之轨迹 欢乐百世 简体中文 JOYO, 方块游戏
碧之轨迹 欢乐百世 简体中文 JOYO, 方块游戏
空之轨迹 FC 娱乐通 简体中文
空之轨迹 SC 娱乐通 简体中文
空之轨迹 the 3RD 娱乐通 简体中文
零之轨迹 Falcom 日文
空之轨迹 FC Xseed 简体中文 Steam 汉化版, ED6-FC-Steam-CN
空之轨迹 FC Xseed 英文 Steam/GOG/Humble
空之轨迹 SC Xseed 英文 Steam/GOG/Humble
空之轨迹 the 3RD Xseed 英文 Steam/GOG/Humble

语音补丁(本项目)

Release下载最新的文件, 将压缩包内的dinput8.dll以及voice文件夹解压到游戏的安装目录即可。

关于 dsound.dll

对于《空之轨迹》系列, 可以用dsound.dll替换掉dinput8.dll, 以应对dinput8.dll无法使用的情况(比如另一个 MOD 也使用了dinput8.dll)。 但是,请不要同时将dsound.dlldinput8.dll置于游戏目录下。

语音脚本

语音脚本的用处是告知语音补丁每一句的对白需要播放哪一个语音文件。每一套语音脚本仅对应特定一个语言版本的游戏。

以下两个项目为语音脚本相关项目:

您只需在上述链接下载对应的文件,并将压缩包内的scena文件夹解压至voice/文件夹即可。

语音文件

注意: 现在已经支持直接使用at9文件(程序中使用了FFmpeg进行解码)。将所有at9文件放到voice/at9文件夹下即可,无需再转换为ogg文件。 不过,FFmpeg 似乎目前无法正常解码ed6501.at9,对于这个文件,仍然建议转为ogg格式。

我们不会提供任何的语音文件。请按照以下步骤自行生成语音文件:

1. 导出游戏镜像

您可能需要一份进化版的游戏以及一台安装了变革的 PSVita 来导出游戏镜像。请自行搜索相关教程。

2. 解包 data.psarc

<进化版游戏目录>/gamedata/data.psarc拖放至PSArcTool即可。
或者,如果您有来自 Sony PS3 SDK 中的psarc.exe, 可以使用这个命令: psarc.exe extract data.psarc
注意: 如果您在进化版游戏目录中找到了 data0.psarc, data1.psarc, ..., 请同样解包它们。

3. 新建文件夹at9,并且将所有at9文件移动到其中

语音文件位于data/talk/...下,Window Powershell 可以用以下命令移动全部at9文件:

Get-ChildItem talk\*.at9 -Recurse | Move-Item -Destination at9\

4. 转换ed6501.at9为 ogg (仅限**《空之轨迹》系列**)

  • 所需工具:
    • at9tool.exe, 来自 Sony PS3 SDK
    • oggenc2

ed6501.at9 位于 data/bgm/arrange/或者data/bgm/。 (特别提醒:三作的ed6501.at9虽然文件名相同,但内容并不是完全相同的。 请务必使用各自的ed6501.at9。)

  • at9 -> wav: at9tool.exe -d -repeat 1 ed6501.at9 ed6501.wav
  • wav -> ogg: oggenc2.exe -Q -q 6.00 -n ed6501.ogg ed6501.wav
    • -q 6.00 参数-q 6.00设置了 ogg 的质量为 6.00, 您也可以选择-2 到 10 之间的其他值。

创建文件夹ogg,并将转好的ogg移入其中。

5. 将文件夹oggat9复制到voice/

运行游戏

如果所有步骤均正确完成,启动游戏后,可以在标题栏看到关于 SoraVoice (Lite)的信息。

关于配置文件

运行游戏后,会自动生成配置文件voice/ed_voice.ini, 罗列配置项如下:

ShowInfo 在标题栏显示关于 SoraVoice (Lite)的信息
Volume 音量: 0 ~ 100
DisableTextSe 禁用对话框文字音效 (仅在有语音时生效)
DisableDialogSe 禁用对话框关闭音效 (仅在有语音时生效)
DisableAoOriVoice 禁用原始剧情语音 (仅对《碧之轨迹》生效)

删除的功能

相比原版语音补丁SoraVoice, lite 版删除了以下功能:

  • 对话框自动前进
  • 配置快捷键
  • 游戏中关于语音补丁的信息提示

本项目使用的外部库

  • GoogleTest
  • Ogg
  • Vorbis.
  • FFmpeg
    • 用 msvc 2022 编译为静态库, 配置命令:
      ./configure --disable-programs --disable-doc \
       --disable-avdevice --disable-swscale --disable-postproc --disable-avfilter \
       --disable-everything --enable-decoder=atrac9 --enable-decoder=vorbis \
       --enable-demuxer=wav --enable-demuxer=ogg --enable-protocol=file \
       --enable-asm --enable-x86asm --toolchain=msvc --disable-debug \
       --enable-gpl --enable-version3
      

特别感谢

Ouroboros, 开发了轨迹系列游戏脚本的编译/反编译工具, 并提供了各种神奇的 Hook 思路。

About

A lite version voice patch for PC games Sora/Zero/Ao no Kiseki.

Resources

License

Stars

Watchers

Forks

Packages

No packages published