/SoraVoice

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

Primary LanguageC++GNU General Public License v3.0GPL-3.0

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

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. Convert at9 files to ogg files

  • Tools needed:
    • at9tool.exe, it can only be found in Sony's PS3 SDK.
    • oggenc2
  1. Create a folder at9, and copy (or cut if you like) the extracted folder data/talk into it.
  • NOTE: For Sora no Kiseki/Trails in the Sky series, you also to need copy data/bgm/arrange/ed6501.at9(or data/bgm/ed6501.at9) into at9. And, please keep in mind that for FC, SC and the 3rd, each game has its own ed6501.at9.
  1. Create Convert.bat with these contents:
@echo off
mkdir wav
mkdir ogg
for /f "delims=" %%i in ('dir /s /b /a-d at9\*.at9') do (
title converting %%~ni.at9
at9tool.exe -d -repeat 1 "%%i" "wav\%%~ni.wav"
oggenc2.exe -Q -q 6.00 -n "ogg\%%~ni.ogg" "wav\%%~ni.wav"
)
  • NOTE: -q 6.00 sets ogg quality to 6.00, you can choose another value between -2 and 10 (higher value means higher quality and larger filesize).
  1. Put at9tool.exe, oggenc2.exe and Convert.bat together with the folder at9(not in the folder), then double click Convert.bat.
  • NOTE: This step may take a very long time, depending on your PC specs, as there are tenth of thousands of files to encode. Please, be patient.

Then, you will get Voice Files in the ogg/ folder.

4. Copy folder ogg 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

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/文件夹即可。

语音文件

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

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文件为ogg

  • 所需工具:
    • at9tool.exe, 来自Sony PS3 SDK
    • oggenc2
  1. 创建文件夹at9, 并将解包出的data/talk文件夹复制(剪切也行)到其中
  • 注意: 对于 《空之轨迹》系列, 您还需复制data/bgm/arrange/ed6501.at9(或者data/bgm/ed6501.at9)到at9/。 (特别提醒:三作的ed6501.at9并不是完全相同的,请务必使用各自的ed6501.at9)
  1. 创建包含以下内容的Convert.bat文件:
@echo off
mkdir wav
mkdir ogg
for /f "delims=" %%i in ('dir /s /b /a-d at9\*.at9') do (
title converting %%~ni.at9
at9tool.exe -d -repeat 1 "%%i" "wav\%%~ni.wav"
oggenc2.exe -Q -q 6.00 -n "ogg\%%~ni.ogg" "wav\%%~ni.wav"
)
  • 注意: 参数-q 6.00设置了ogg的质量为6.00, 您也可以选择-2到10之间的其他值(值越高, 质量越好, 同时生成的文件的体积越大)。
  1. at9tool.exe, oggenc2.exe and Convert.bat与文件夹at9放到一起, 然后双击运行Convert.bat
  • 注意: 这一步可能会花较长时间, 请耐心等待。

这样, 您就可以在文件夹ogg中找到语音文件了。

4. 将文件夹ogg复制到voice/

运行游戏

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

关于配置文件

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

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

删除的功能

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

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

本项目使用的外部库

特别感谢

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