Skip to content

Instantly share code, notes, and snippets.

@fabiolimace
Created March 25, 2026 08:06
Show Gist options
  • Select an option

  • Save fabiolimace/4bd52a877b073ebaae860d0f58e032f2 to your computer and use it in GitHub Desktop.

Select an option

Save fabiolimace/4bd52a877b073ebaae860d0f58e032f2 to your computer and use it in GitHub Desktop.
Speech Dispatcher with compiled eSpeak NG on Ubuntu 24.04

This document lists commands to setup speech-dispatcher with compiled eSpeak-NG on Ubuntu 24.04.

Uninstall eSpeak NG:

sudo apt remove espeak-ng espeak-ng-data

Clone eSpeak NG from Github:

cd ~/git
git clone https://github.com/espeak-ng/espeak-ng.git

Compile the source code, including shared libs:

cd ~/git/espeak-ng
cmake -Bbuild -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON
cmake --build build
cmake --build build --target data
sudo cmake --install build

Install speech-dispatcher-espeak-ng only, ignoring its dependencies:

apt-get download speech-dispatcher-espeak-ng
sudo dpkg -i --ignore-depends=libespeak-ng1,espeak-ng-data speech-dispatcher-espeak-ng_0.12.0~rc2-2build3_amd64.deb

Restart speech-dispatcher service:

sudo systemctl restart speech-dispatcher
sudo systemctl status speech-dispatcher

Test speech-dispatcher:

spd-say "Hi!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment