
- Requirements:

  - A C++ compiler with C++17 support.
    The following compiler has been tested:
    - GCC 12.2 (Linux+GNU x86_64).

  - CMake.

  - Speech Dispatcher (tested with version 0.11.4).

  - Follow ../gama_tts/INSTALL.txt.
    gama_tts must be installed using (as root, in the build directory):
      cmake --build . --target install

  - Libraries and headers for the audio interface (ALSA, JACK or PulseAudio).

- Build (Linux+GNU):

  mkdir ../build-speechd_module
  cd ../build-speechd_module

  # If the Speech Dispatcher modules are in /usr/lib/speech-dispatcher-modules/:
  cmake -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release \
    -D RTAUDIO_API_ALSA=OFF -D RTAUDIO_API_JACK=OFF \
    ../speechd_module
  # If the Speech Dispatcher modules are in /usr/lib64/speech-dispatcher-modules/:
  cmake -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release \
    -D RTAUDIO_API_ALSA=OFF -D RTAUDIO_API_JACK=OFF \
    -D LIB_DIR_SUFFIX=64 \
    ../speechd_module

  cmake --build .

- Install (Linux+GNU):

  # Execute as root:
  cmake --build . --target install
  # Only two files are installed:
  # /etc/speech-dispatcher/modules/gama_tts.conf
  # /usr/lib/speech-dispatcher-modules/sd_gama_tts (or lib64)

- Add the following line to /etc/speech-dispatcher/speechd.conf:

  AddModule "gama_tts" "sd_gama_tts" "gama_tts.conf"

  - Don't forget to uncomment the line:

    AddModule "dummy"         "sd_dummy"      ""

- Edit the file /etc/speech-dispatcher/modules/gama_tts.conf if necessary.

- Test (Linux+GNU):

  killall /usr/bin/speech-dispatcher

  spd-say -O
  # Check if gama_tts is shown.

  spd-say -o gama_tts 'hello world'
