small bug
1 file changed
tree: 16503fe6ea21d816ca85d0e47aa6e142f3def443
  1. .github/
  2. config/
  3. doc/
  4. include/
  5. locale/
  6. po/
  7. src/
  8. .gitignore
  9. ANNOUNCE
  10. AUTHORS
  11. BUGS
  12. build.sh
  13. configure.ac
  14. COPYING.GPL-2
  15. COPYING.GPL-3
  16. COPYING.LGPL
  17. FAQ
  18. git.mk
  19. INSTALL
  20. Makefile.am
  21. NEWS
  22. README.md
  23. README.overview.md
  24. README.packagers
  25. README.style.md
  26. README.translators
  27. run-spd-say.in
  28. run-speechd.in
  29. speech-dispatcher.pc.in
  30. speech-dispatcher.service.in
  31. speech-dispatcher.socket
  32. speech-dispatcherd.service.in
  33. TODO
README.md

About

This is a speech dispatch model for running Kitten TTS. Kitten TTS is a deep learning model which provides high quality natural sounding TTS generation using models ranging from 15M to 80M parameters. Due to its small size it is able to run in real-time on CPU. The goal of this project is to integrate Kitten TTS with speech dispatch while maintaining its near real-time speech generation, with special attention being place on reading of long text's such as ebooks. To achieve this the original python code was rewrote into c and tightly integrated into a speech dispatch model.

Installing KittenTTS from a prebuilt binary.

Download the binary from the git here.

You may need to install dependencies for onnxruntime, libxml, libcurl for your os

add the following to your ~.config/speech-dispatcher/speechd.conf file.

Timeout 0
AddModule "kittentts" "<bin path>" "kittentts.conf"

replace <bin path> with the absolute path to your binary file.

Restart Speech dispatch if its running.

Voices Demo

You can find a video demo of Kitten TTS readding here

Build instructions.

Install dependencies for fedora

sudo dnf update
sudo dnf install @development-tools @c-development
sudo dnf install git autoconf automake libtool texinfo gettext glib2-devel dotconf-devel libsndfile-devel onnxruntime-devel libxml2-devel libcurl-devel espeak-ng-devel pulseaudio-libs-devel alsa-lib-devel

Install dependencies for ubuntu/debian

sudo apt update
sudo apt install git build-essential autoconf autopoint pkg-config libtool texinfo gettext libglib2.0-dev libdotconf-dev libsndfile1-dev libonnxruntime-dev libxml2-dev libcurl4-openssl-dev libespeak-ng-dev

get the repo and build

git clone https://github.com/jsett/speechd.git
cd speechd/
./build.sh
./configure
make

Testing without installing

Create a config dir somewhere, Here I am using the repos parent directory.

mkdir -p ../kitten-config
mkdir -p ../kitten-config/modules
touch ../kitten-config/speechd.conf
touch ../kitten-config/modules/kitten.conf
echo "Timeout 0" >> ../kitten-config/speechd.conf
echo 'AddModule "kittentts" "sd_kittentts" "kitten.conf"' >> ../kitten-config/speechd.conf

Run the dispatcher.

./run-speechd -t 0 -s -C ../kitten-config

Give it a second to download the need models. You can check if they are downloaded using ls -lah ~/.config/speech-dispatcher/extra/ you should see 3 .onnx files and 3 .bin.

In another terminal run.

export SPEECHD_ADDRESS=inet_socket:127.0.0.1:6561
./run-spd-say -L

You should get a list of voices starting with “Leo”

Try and speak something.

./run-spd-say -y "Bella" "I can get you a cheaper ticket if you let me amputate your legs: I can even take your thighs as a
deposit, said the travel agent."

Installing from a build into a custom path.

mkdir ../speechd_install
./configure --prefix=`realpath ../speechd_install`
make
make install

speech-dispatcher

Common interface to speech synthesis

Introduction

This is the Speech Dispatcher project (speech-dispatcher). It is a part of the Free(b)soft project, which is intended to allow blind and visually impaired people to work with computer and Internet based on free software.

Speech Dispatcher project provides a high-level device independent layer for access to speech synthesis through a simple, stable and well documented interface.

Support

These speech syntheses are supported:

  • Baratinoo / VoxyGen
  • Cicero
  • DECTalk
  • Edge TTS
  • Epos
  • ESpeak/ESpeak-NG
  • Festival
  • Flite
  • Fono
  • IBMTTS / voxin
  • Ivona
  • Kali
  • Llia
  • Mary
  • MBrola
  • Mimic3
  • OpenJTalk
  • Pico
  • Piper
  • Swift

Documentation

Complete documentation may be found in doc directory: the speech dispatcher documentation: doc/speech-dispatcher.html, the spd-say documentation: doc/spd-say.html, and the SSIP protocol documentation: doc/ssip.html.

Read doc/README for more information.

This documentation is also available online: the speech dispatcher documentation, the spd-say documentation, and the SSIP protocol documentation.

The python binding documentation is available on the shell with pydoc3 speechd (or pydoc speechd) and online: the speechd.client module documentation

The key features and the supported TTS engines, output subsystems, client interfaces and client applications known to work with Speech Dispatcher are listed in overview of speech-dispatcher as well as voices settings and where to look at in case of a sound or speech issue.

Mailing-lists

There is a public mailing-list speechd-discuss for this project.

This list is for Speech Dispatcher developers, as well as for users. If you want to contribute the development, propose a new feature, get help or just be informed about the latest news, don't hesitate to subscribe. The communication on this list is held in English.

Development

Various versions of speech-dispatcher can be downloaded from the project archive.

Bug reports, issues, and patches can be submitted to the github tracker.

The source code is freely available. It is managed using Git. You can use the GitHub web interface or clone the repository from:

https://github.com/brailcom/speechd.git

Modules for different speech synthesis backends can easily be developped in different ways. This allows to integrate all kinds of speech syntheses, be they C libraries, external commands, or even http services, and whatever their licences since the interface between the speechd server and the syntheses is a mere pipe between processes with a very simple protocol. More details are available in the Output Modules documentation

Rust bindings are currently developed separately. You can use the GitLab web interface or clone the repository from:

https://gitlab.com/ndarilek/speech-dispatcher-rs.git

A Java library is currently developed separately. You can use the GitHub web interface or clone the repository from:

https://github.com/brailcom/speechd-java.git

To build and install speech-dispatcher and all of it's components, read the file INSTALL.

To try the just-built speech-dispatcher without installing it (e.g. to avoid disturbing an existing speech-dispatcher instance), you can run

./run-speechd -t 0 -s

and in another terminal run

./run-spd-say foo

You can also make other speech-dispatcher clients connect to your dedicated instance by first running

export SPEECHD_ADDRESS=inet_socket:127.0.0.1:6561

If you want those clients to also use the just-built libspeechd, you can additionally use

export LD_LIBRARY_PATH=$PWD/src/api/c/.libs

People

Speech Dispatcher is being developed in closed cooperation between the Brailcom company and external developers, both are equally important parts of the development team. The development team also accepts and processes contributions from other developers, for which we are always very thankful! See more details about our development model in Cooperation. Bellow find a list of current inner development team members and people who have contributed to Speech Dispatcher in the past:

Development team:

  • Samuel Thibault
  • Jan Buchal
  • Tomas Cerha
  • Hynek Hanke
  • Milan Zamazal
  • Luke Yelavich
  • C.M. Brannon
  • William Hubbs
  • Andrei Kholodnyi

Contributors: Trevor Saunders, Lukas Loehrer,Gary Cramblitt, Olivier Bert, Jacob Schmude, Steve Holmes, Gilles Casse, Rui Batista, Marco Skambraks ...and many others.

Licensing

Speech Dispatcher uses several layers of software, to allow for flexible licensing.

The central speechd server is essentially GPLv2.

The C api client library is essentially LGPL2.1-or-later, which thus allows to use it in various applications with little licensing concerns. It is connected to the central server through a socket with the SSIP protocol, in such a way that GPL licensing propagation doesn't apply.

The speech modules are connected to the central server through a pipe with a very simple protocol similar to SSIP, in such a way that GPL licensing propagation doesn't apply either.

To make writing speech modules simpler, a libspeechd_module library is provided under a BSD-2 license, which can thus be combined with essentially any other license.

Some more advanced module helpers are also provided under LGPLv2.1-or-later, but they are not mandatory.

In detail:

  • The speech-dispatcher server (src/server/ + src/common/) contains GPLv2-or-later and LGPLv2.1-or-later source code, but is linked against libdotconf, which is LGPLv2.1-only at the time of writing.

  • The speech-dispatcher modules (src/modules/ + src/common/ + src/audio/) contain GPLv2-or-later, LGPLv2.1-or-later, LGPLv2-or-later, and BSD-2 source code, but some parts are also linked against libdotconf, which is LGPLv2.1-only at the time of writing.

  • The spd-conf tool (src/api/python/speechd_config/), spd-say tool (src/clients/say), and spdsend tool (src/clients/spdsend/) are GPLv2-or-later.

  • The C API library (src/api/c/) is LGPLv2.1-or-later

  • The Common Lisp API library (src/api/cl/) is LGPLv2.1-or-later.

  • The Guile API library (src/api/guile/) contains GPLv2-or-later and LGPLv2.1-or-later source code.

  • The Python API library (src/api/python/speechd/) is LGPLv2.1-or-later.

  • All tests in src/tests/ are GPLv2-or-later.

Copyright (C) 2001-2009 Brailcom, o.p.s Copyright (C) 2018-2020, 2022, 2024-2026 Samuel Thibault samuel.thibault@ens-lyon.org Copyright (C) 2018 Didier Spaier didier@slint.fr

This README file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This README file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details (file COPYING in the root directory).

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.