Have Patience Australia 1.2.1 for Linux - voice engine source code
==================================================================

This download is the complete corresponding source code for the GPL-licensed
parts of the voice program that comes with the Linux packages of Have Patience
Australia 1.2.1 (Classic Gizmo):

  have-patience_1.2.1-1_amd64.deb          (Debian, Ubuntu, Mint)
  have-patience-1.2.1-1-x86_64.pkg.tar.zst (Arch, Manjaro, EndeavourOS)
  have-patience-1.2.1-x86_64-linux.tar.gz  (run-from-a-folder)
  have-patience-1.2.1.flatpak              (Flatpak)

THE GAME ITSELF IS NOT INCLUDED. The have-patience program is Classic Gizmo's
own work, distributed as freeware (free to download, use and share unchanged;
it is not open source). It runs the voice program as a separate command and
does not link against it. Only the voice engine is covered here.

Download page: https://classicgizmo.com/dl/extrasoftware/

Classic Gizmo did not modify any of the components below and applied no
patches. The bundled voice engine is the official, prebuilt piper-tts 1.8.0
release, packaged with PyInstaller by build-scripts/build-voice.sh.


1. Where the voice engine is in each package
--------------------------------------------
  .deb and Arch:  /usr/share/have-patience/voice/
  Flatpak:        /app/share/have-patience/voice/
  .tar.gz:        have-patience-1.2.1/voice/

Every package has the same 807 files. VOICE-BUNDLE-SHA256SUMS.txt lists the
sha256 of each one as shipped in the .deb, Arch and .tar.gz packages (paths
start "voice/"). In the Flatpak, the Flatpak build tool (flatpak-builder)
automatically strips symbol and debug information from 19 of the .so files,
including espeakbridge.so (Flatpak sha256
1b502c3551c3850d255f1b6aea0ac90baff44fe9e0bd3a272ed1faec04772915). Their code
and data sections are unchanged byte for byte; VOICE-BUNDLE-SHA256SUMS-flatpak.txt
lists the Flatpak's files. The source is the same.


2. GPL components and their exact source
----------------------------------------

(a) Piper (piper-tts / piper1-gpl) 1.8.0  -  GPL-3.0-or-later
    Upstream:  https://github.com/OHF-voice/piper1-gpl
    Tag:       v1.8.0   commit 639388b6317fc4731e91d53da42aea68fd4166ff
    Source:    upstream/piper1-gpl-v1.8.0.tar.gz
               sha256 0a22987a6157f14e2fb7cf4aa702b547467fd0448bea9f233abd503c3ff4a0e1
               (GitHub's archive of the v1.8.0 tag, downloaded 2026-11-15:
                https://github.com/OHF-voice/piper1-gpl/archive/refs/tags/v1.8.0.tar.gz)
    Built by:  upstream's release workflow (.github/workflows/publish.yml,
               cibuildwheel 2.23.2, manylinux_2_28 image) on the v1.8.0 tag.
    Binary as released (we did not build it ourselves):
               piper_tts-1.8.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
               sha256 25b4d3f31ff70c8fa7151908e00aaa5650cbdf16bca8fcf21299f3941b89a7d3
               (identical on PyPI and on the GitHub v1.8.0 release)
    Files in our packages:
               voice/piper/_internal/piper/ (425 files, every one byte-identical
               to that wheel), including
               voice/piper/_internal/piper/espeakbridge.so
               sha256 7ec4a80efda263303c257e77749c18f1d544b5ea3f5102c06b2c4fe2a6323fe6
               and the Python modules of the piper package, also stored as
               bytecode inside voice/piper/piper (see (c)).
    Note:      the PyPI source archive piper_tts-1.8.0.tar.gz
               (sha256 830588aded347df579c91a32703e0fc2a3685d84f1e3533b14f2de69135d4904)
               lacks CMakeLists.txt and src/piper/espeakbridge.c, so it is not
               complete; the GitHub tag archive above is used instead.

(b) eSpeak NG 1.52.0.1, commit 724808c5a83f9ef95fdd0db886ba7ba537ff224a
    (2026-04-03, "Add Abkhazian language support (ab) (#2369)")
    -  GPL-3.0-or-later (its in-tree ucd-tools are GPL-3.0-or-later; the
       Unicode data they are generated from is under the Unicode licence,
       COPYING.UCD; the BSD-2 getopt.c is Windows-only and not used on Linux)
    Upstream:  https://github.com/espeak-ng/espeak-ng
    Source:    upstream/espeak-ng-724808c5a83f9ef95fdd0db886ba7ba537ff224a.tar.gz
               sha256 7d8ebd78201923a443245362a928999977d1721c3eeba596eafc6ea8db7e243c
               (https://github.com/espeak-ng/espeak-ng/archive/724808c5a83f9ef95fdd0db886ba7ba537ff224a.tar.gz)
    How it is built into Piper: piper1-gpl's CMakeLists.txt (in (a)) fetches
               espeak-ng with ExternalProject_Add(GIT_TAG 724808c), builds it as
               a static library with USE_ASYNC, USE_MBROLA, USE_LIBSONIC,
               USE_LIBPCAUDIO, USE_KLATT and USE_SPEECHPLAYER all OFF and
               EXTRA_cmn and EXTRA_ru ON, links it (with ucd-tools) into
               espeakbridge.so, and copies the compiled espeak-ng-data.
    Files in our packages:
               compiled into voice/piper/_internal/piper/espeakbridge.so (above);
               voice/piper/_internal/piper/espeak-ng-data/ (373 files, listed in
               VOICE-BUNDLE-SHA256SUMS.txt).
    Not included because not compiled in: sonic (espeak-ng's configure step
               fetches waywardgeek/sonic at fbf75c3d6d846bad3bb3d456cbc5d07d9fd8c104,
               but USE_LIBSONIC=OFF; espeakbridge.so has no sonic code),
               pcaudiolib and mbrola (disabled, not linked).

(c) PyInstaller 6.22.3 bootloader and loader modules
    -  GPL-2.0-or-later WITH the PyInstaller Bootloader Exception
       (run-time hooks: Apache-2.0)
    Upstream:  https://github.com/pyinstaller/pyinstaller  (tag v6.22.3,
               commit ecd7993d65c43b254f4e3f718e36d5b4a70a3ed5)
    Source:    upstream/pyinstaller-6.22.3.tar.gz
               sha256 05eb2f5615503e72939a7224d68b4aff572c6b0438ee4a17d0a4b481f399362d
               (the official PyPI source release; bootloader source in bootloader/)
    Files in our packages:
               voice/piper/piper
               sha256 5d08a2eed9647e748a0245f2b82c919895a62537232dc26f4f0e4c36c452f687
               (PyInstaller's prebuilt Linux-64bit-intel/run bootloader from the
               6.22.3 wheel, unchanged, with the program's archive added as an
               ELF section named "pydata")
    The Bootloader Exception lets the bootloader be distributed inside a
    combined program without the GPL applying to that program; its source is
    included here anyway, for completeness.


3. Other parts of the voice program (not GPL, notices only)
-----------------------------------------------------------
  Python 3.13.18 (libpython3.13.so.1.0, standard library)  PSF-2.0
      licenses/Python-PSF-LICENSE.txt; statically includes OpenSSL 3.5.9
      (Apache-2.0), ncurses 6.5 and libedit (MIT/BSD style)
      voice/piper/_internal/libpython3.13.so.1.0
      sha256 35e0fd822c5f7e60fe24c1bcb3e5e59b634653185889846d1be02dd1250272bf
  ONNX Runtime 1.31.1  MIT  notices/python-packages/onnxruntime-1.31.1-*.txt
      voice/piper/_internal/onnxruntime/capi/libonnxruntime.so.1.31.1
      sha256 fc44112fbe06d7d689c57e11d3862031f64711007e4ee020f8eed5185fd2c1d3
  NumPy 2.5.4 with scipy-openblas  BSD-3-Clause and others
      notices/python-packages/numpy-2.5.4-LICENSE.txt
  flatbuffers 25.12.19 (Apache-2.0), packaging 26.3 (Apache-2.0 OR
      BSD-2-Clause), pathvalidate 3.3.1 (MIT): Python modules inside voice/piper/piper
  Parts of Piper under other licences: g2pw_onnx.py (Apache-2.0, from g2pW),
      piper/tashkeel model (MIT, libtashkeel), piper/hebrew model (MIT, nakdimon);
      see notices/python-packages/.

  Runtime libraries copied in by PyInstaller / NumPy:
    libstdc++.so.6, libgcc_s.so.1 (GCC runtime)  GPL-3.0-or-later WITH GCC
        Runtime Library Exception 3.1 (licenses/GCC-RLE-3.1.txt)
        sha256 1fd75fe70354a416d75aef22bcae68c47bd25d20e2d0568c30b1a9838cf62f11 / d93224d2b0dab4247598be683adca02f5cf00586f99c187579cd7e92058fb7cb
    libgfortran-83c28eba-468e71e5.so.5.0.0 (from NumPy's wheel)  GPL-3.0-or-later
        WITH GCC Runtime Library Exception 3.1
        sha256 a6a368328d02a5d8a149746f13f6268f8cc9192df5c18777b25c3c9b5ef52160
    libquadmath-2284e583-a9307bba.so.0.0.0 (from NumPy's wheel)  LGPL-2.1-or-later
        (licenses/LGPL-2.1.txt)
        sha256 6bc3069003caec1f075be3c51ae8355332f081fa9465910c4b5724e7fe7d8ad4
    libz.so.1  zlib 1.3.1  Zlib licence
        sha256 60cf9425cbaa555a54b48373188416a310bfeed786565984656634fa6fa12948
  These libraries are unmodified builds. Their source is part of GCC
  (https://gcc.gnu.org/: libstdc++-v3, libgcc, libgfortran, libquadmath) and
  zlib (https://zlib.net/).

  libquadmath and libgfortran: exact source included.
    Both files come unchanged from NumPy 2.5.4's wheel
    (numpy-2.5.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl,
    sha256 6ffa07666f8da0eef81d149934a626d0d95fbd6838432a33e66245423a9062c0;
    its numpy.libs/libquadmath is byte-identical to ours). auditwheel only
    renamed them. They are GCC 8.5.0 as built by AlmaLinux 8.10, package
    version 8.5.0-28.el8_10.alma.1:
      - each file's .gnu_debuglink names that build, e.g.
        libquadmath.so.0.0.0-8.5.0-28.el8_10.alma.1.x86_64.debug;
      - their GNU build IDs equal those in AlmaLinux's binary packages
        libquadmath-8.5.0-28.el8_10.alma.1.x86_64.rpm
          (build ID c1c5f8d61f17e5579c4e85718845b74e4b94116c) and
        libgfortran-8.5.0-28.el8_10.alma.1.x86_64.rpm
          (build ID 04dbe32dceb80654422140fb7641f732065999c8);
      - their .text, .rodata and .data sections are byte-identical to the
        files in those packages.
    Corresponding source: upstream/gcc-8.5.0-28.el8_10.alma.1.src.rpm
      65,715,094 bytes,
      sha256 c94dbbd2cd6d5d01a5a6822ea18f8ce34942c25a80e17b4682d547d5e652dbd0
      from https://vault.almalinux.org/8.10/BaseOS/Source/Packages/
    This is AlmaLinux's own source package, exactly as published. It holds
    gcc-8.5.0-20210514.tar.xz (the GCC 8.5.0 source), gcc.spec and the 59
    patches applied in that build, which is why it is included rather than
    the plain gcc-8.5.0 release tarball. Unpack it with rpm2cpio (or
    "7z x", or bsdtar) and read gcc.spec for the build steps.

  libstdc++.so.6, libgcc_s.so.1 and libz.so.1 were copied in by PyInstaller
  from the build system. Their exact source package has not been pinned, so
  it is not included here; GCC and zlib source is available from the
  addresses above, and their sha256 is listed above.

  The voice model (voice/voices/en_AU-librivox-medium.onnx and .onnx.json) is
  not software: piper-en_AU-librivox-medium by DataCraftsmanAustralia,
  CC BY 4.0, revision 7f35faf19fe1789ece4b14233448f7c04e35a84f of
  https://huggingface.co/DataCraftsmanAustralia/piper-en_AU-librivox-medium
      .onnx       sha256 f34849bce64d803d0fe90087766d5d6f2a8215a12edad43e486d77072df7dd41
      .onnx.json  sha256 e0d8d381bf3eedeb7483cfa4ab5333d45284d30822bbc93f39fd10dc2935c1c1
  Fine-tuned from en_GB-jenny_dioco-medium, derived from the Jenny TTS dataset
  by Jenny (Dioco). See notices/voice-model/ and licenses/CC-BY-4.0.txt.


4. How the voice program was made
---------------------------------
build-scripts/build-voice.sh (from the Have Patience project) does it:
  python3 -m venv .venv
  pip install piper-tts==1.8.0 pyinstaller        (here: PyInstaller 6.22.3)
  pyinstaller --onedir --name piper --noconfirm \
      --collect-all piper --collect-all onnxruntime entry.py
  where entry.py is:   from piper.__main__ import main; main()
and then downloads the voice model from Hugging Face. The binaries show it
ran under Python 3.13.18 (a standalone, clang-built CPython) on an x86_64
Ubuntu 24.04-based machine; the build machine itself was not recorded. Nothing was compiled from
source by Classic Gizmo; to rebuild piper-tts and eSpeak NG from the source
here, follow upstream/piper1-gpl-v1.8.0.tar.gz's README (it uses
scikit-build and CMake, which fetch eSpeak NG at the commit above; a copy of
that exact commit is included so the build does not depend on GitHub).

build-scripts/get-clearer-voice.sh is shipped with the game. It is optional:
it only downloads a different voice model from Hugging Face to the player's
own computer, plus upstream Piper's own release (rhasspy/piper 2023.11.14-2)
directly from GitHub if the bundled voice program is missing. Classic Gizmo
does not distribute those downloads.


5. Licence texts
----------------
licenses/GPL-3.0.txt      Piper, eSpeak NG (and the GCC runtime libraries)
licenses/GPL-2.0.txt      PyInstaller
licenses/LGPL-2.1.txt     libquadmath (source: upstream/gcc-8.5.0-28.el8_10.alma.1.src.rpm)
licenses/GCC-RLE-3.1.txt  GCC Runtime Library Exception
licenses/Apache-2.0.txt, licenses/Python-PSF-LICENSE.txt, licenses/CC-BY-4.0.txt

sha256 of the three upstream archives and the GCC source package are also
in SHA256SUMS.txt.
