Skip to content

upskaling/gSpeech

 
 

Repository files navigation

gSpeech

License: GPL v3

Introduction

gSpeech is a minimal GUI for the Text To Speech 'Svox Pico'. Read clipboard or selected text in different languages and manage it : pause, stop, replay.

Last stable version

Packaging status

  • Ubuntu 18.04, 19.10 and 20.04: PPA

Installation instruction

Ubuntu:

Depends: python (>=3.5) python3-gst-1.0 (>=1.0) python3-gi (>=2.24) libttspico-utils (>= 1.0) gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-pulseaudio gir1.2-appindicator3-0.1

install pico

Suggests: sox (is needed to speech text with more than 2^15 characters)

sudo apt install libttspico-utils sox

install speech-dispatcher

sudo apt install espeak mbrola-fr1 mbrola-fr4 speech-dispatcher
cp -r ./speech-dispatcher  ~/.config

install tesseract

will be used to read the text in the images

sudo apt install tesseract-ocr-fra xfce4-screenshooter

install argos-translate

Attention it is installation takes more than 1go destocking

cd ~/.local/share
mkdir argos-translate
cd argos-translate
python3 -m venv venv
source venv/bin/activate
pip install argostranslate
ln -s $(which argos-translate-cli) ~/.local/bin/

install translate-shell

cd ~/.local/share
git clone https://github.com/soimort/translate-shell
cd translate-shell
make PREFIX=~/.local/bin/ install

Screenshots

interface example interface example cli example cli2 example

CLI usage

./gspeech-cli -i "mon chat s'appelle maurice" -o speech/tests/fr_FR/assets/chat_maurice.wav
./gspeech-cli2 --input-text "mon chat s'appelle maurice"

Stop playback

./gspeech-cli2 -S

Add keyboard shortcuts for example

commande keyboard shortcuts
./gspeech-cli2 --selection Super+²
./gspeech-cli2 --selection -t Super+É
./gspeech-cli2 -S Maj+Échap

Docker

make docker build.{env}
make docker run.{env}

Tests

make test

Create a Debian package

make build.debian

and launch with :

sudo dpkg -i ../gspeech*_all.deb

Create a Nix package

nix build

Clean (generate files)

make clean

About

gSpeech: a GUI for SVox Pico TTS

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 96.2%
  • Nix 1.5%
  • Makefile 1.2%
  • Other 1.1%