Have Patience Australia 1.2.1 for Windows: source code of the voice engine
==========================================================================

This is the complete corresponding source code of the GPL voice engine that
comes with Have Patience Australia 1.2.1 for Windows (have-patience-1.2.1-
windows-x64.zip, folder voice\piper\): piper.exe and piper.dll, built from
piper1-gpl with eSpeak NG and open_jtalk compiled in. It is provided under
GNU GPL v3 section 6(d), as a download next to the game.

The game itself (have-patience.exe) is a separate program: Classic Gizmo's
freeware, not open source (see LICENSE.txt in the game's folder). It only
starts piper.exe, and it is not part of this download.

What is here
------------
third_party\downloads\    The exact source archives the engine was built from
                          (unchanged upstream GitHub archives):
  piper1-gpl-6565650.zip      github.com/OHF-Voice/piper1-gpl, commit
                              6565650f47648de2fb053f622544e46e32c9d0e7 (GPL-3.0).
                              Includes libpiper's vendored nlohmann json 3.11.2
                              (MIT) and uni-algo 0.8.1 (public domain / MIT).
  espeak-ng-212928b.tar.gz    github.com/espeak-ng/espeak-ng, commit
                              212928b394a96e8fd2096616bfd54e17845c48f6
                              (GPL-3.0-or-later; includes ucd-tools, and the
                              data compiled into voice\piper\espeak-ng-data).
  open_jtalk-4a1ef70.tar.gz   github.com/tsukumijima/open_jtalk, commit
                              4a1ef70897689d2ee6b8f9be35454a3a4b15b289
                              (BSD-3-Clause; includes mecab, BSD).
packaging\windows\piper\  The build script and the changes made to piper1-gpl:
  build-piper.ps1             Downloads (if missing) and checks the archives,
                              applies the changes, builds, and stages the
                              game's voice folder.
  piper1-gpl-windows.patch    The same changes as a diff: libpiper\CMakeLists.txt
                              (archives instead of git) and
                              libpiper\src\main\utils\process.cpp (flush stdout).
  *.txt                       Licence texts the script copies into the game.
licenses\                 The licence and notice files shipped with the game.
SHA256SUMS.txt            SHA-256 of every file in this download.

Not included, and why
---------------------
* sonic (github.com/waywardgeek/sonic, Apache-2.0): eSpeak NG's CMake declares
  it, but it is not compiled into the engine (USE_LIBSONIC is OFF; no sonic
  code is in piper.dll). build-piper.ps1 fetches it, pinned by SHA-256
  715827B5A39B79E56E44397D7B845910DF996D4CCA74777B3B61629B1DDC98C1, only
  because eSpeak NG's configure step asks for it.
* ONNX Runtime 1.22.0 (MIT): Microsoft's prebuilt onnxruntime.dll, fetched by
  piper1-gpl's CMake. Notices only (licenses\onnxruntime-*).
* The voice models (CC BY 4.0): data, not program source. Credits in
  licenses\en_AU-librivox-medium-ATTRIBUTION.md and the game's THIRD-PARTY.md.
* The Microsoft Visual C++ runtime DLLs (msvcp140*, vcruntime140*): System
  Libraries shipped with the compiler, redistributable from Visual Studio.

How to build
------------
1. Windows 10 or 11 x64, with Visual Studio 2022 Build Tools: the "Desktop
   development with C++" workload and its "C++ CMake tools for Windows"
   component (cmake 3.26 or newer). No git or Python is needed.
2. Unzip this download to a short path, for example C:\hpsrc (MSBuild fails on
   paths over 260 characters).
3. In PowerShell, from that folder:
       powershell -ExecutionPolicy Bypass -File packaging\windows\piper\build-piper.ps1
   Internet access is needed for sonic, ONNX Runtime and the Australian voice;
   the three archives above are used from third_party\downloads\ as they are.
4. The result is third_party\voice-stage\ (piper\, voices\, licenses\), which
   is the game's voice\ folder. The built programs are in
   third_party\install\bin\ (piper_exe.exe is shipped as piper.exe).

Built for the game with MSVC 14.44 (Visual Studio 2022 Build Tools 17.14),
CMake 3.31.6, Release, x64.
