Giter VIP home page Giter VIP logo

qpicospeaker's Introduction

Build status

QPicoSpeaker

QPicoSpeaker is a Qt text to speech (TTS) GUI for the pico2wave console application.


Motivation

I had sound problems with the Gespeaker UI for espeak and I also was unhappy with the robotic sounds from espeak.
As better solution for the unstatisfied TTS situation on the Linux desktop I develop this application.

Third party requirements:

  • qt5 + qt5-multimedia
  • pico2wave
  • sox
  • mplayer for Google TTS

Install requirements:

Debian/Ubuntu

sudo apt-get install sox mplayer libttspico-utils

For building you also need qt5 + multimedia packages:
sudo apt-get install qt5-default qtmultimedia5-dev

  • git clone https://github.com/Shadowsith/qpicospeaker
  • cd qpicospeaker
  • sudo ./install.sh

Install paths:

  • Binary: /usr/bin/qpicospeaker
  • Config: /home/<user>/.config/qpicospeaker/config.xml

To uninstall QPicospeaker write ./install.sh --uninstall

If the project is in a more finished state there will be a package in the Ubuntu launchpad too.

Arch Linux

There is a offical maintained package in the AUR: yay -S qpicospeaker-git

Tested Systems

  • Manjaro/Arch Linux (KDE)
  • Ubuntu (MATE) 18.04

Supported languages (TTS):

  • English (US)
  • English (UK)
  • German
  • Spain
  • French
  • Italian

Implemented features

  • Write a text in the textinput and let it say from the TTS engine
  • Change speak, loudness and pitch form the TTS software
  • Load/save textfile form/to textinput field
  • Save output file to the location what you want
  • Logo/Icon
  • Connection to Google Translate TTS engine

Upcomming features

  • Default Settings
  • Translation to other languages
  • All Languages for Google TTS
  • removing mplayer to curl
  • resizing UI
  • Help documentation

Future planned

  • eSpeak speech synthesizer as alternative to pico2wave and Google
  • IBM Watson TTS support

Restictions

  • no male voice for Google TTS (no acces about connection string possible)

Screenshots

License

  • Project is free software and licensed under GPLv3+
  • Logo and GIMP Project are public domain (CC0)

qpicospeaker's People

Contributors

shadowsith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

reyoking

qpicospeaker's Issues

does not build in Arch, please help

==> Starting build()...
Submodule 'src/lib/qdocker' (https://github.com/Shadowsith/qdocker) registered for path 'src/lib/qdocker'
Cloning into '/home/z/.cache/yay/qpicospeaker-git/src/qpicospeaker/src/lib/qdocker'...
Submodule path 'src/lib/qdocker': checked out '0be78c3e34f7b344425f835e49792004a8652788'
Info: creating stash file /home/z/.cache/yay/qpicospeaker-git/src/build/.qmake.stash
/usr/bin/uic ../qpicospeaker/src/qpicospeaker.ui -o ui_qpicospeaker.h
/usr/bin/uic ../qpicospeaker/src/aboutinfo.ui -o ui_aboutinfo.h
/usr/bin/uic ../qpicospeaker/src/settings.ui -o ui_settings.h
g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto -fno-fat-lto-objects -Wall -Wextra -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../qpicospeaker -I. -I/usr/include/qt -I/usr/include/qt/QtMultimedia -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtCore -I. -I. -I/usr/lib/qt/mkspecs/linux-g++ -o texttospeech.o ../qpicospeaker/src/texttospeech.cpp
g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto -fno-fat-lto-objects -Wall -Wextra -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../qpicospeaker -I. -I/usr/include/qt -I/usr/include/qt/QtMultimedia -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtCore -I. -I. -I/usr/lib/qt/mkspecs/linux-g++ -o aboutinfo.o ../qpicospeaker/src/aboutinfo.cpp
../qpicospeaker/src/texttospeech.cpp: In member function ‘bool TextToSpeech::checkProgram(std::string)’:
../qpicospeaker/src/texttospeech.cpp:117:27: error: aggregate ‘std::array<char, 128> buffer’ has incomplete type and cannot be defined
117 | std::array<char, 128> buffer;
| ^~~~~~
../qpicospeaker/src/texttospeech.cpp: In member function ‘void TextToSpeech::recordFiles()’:
../qpicospeaker/src/texttospeech.cpp:80:20: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
80 | std::system(_cmd.c_str());
| ~~~~~~~~~~~^~~~~~~~~~~~~~
../qpicospeaker/src/texttospeech.cpp: In member function ‘void TextToSpeech::clearTmp()’:
../qpicospeaker/src/texttospeech.cpp:142:16: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
142 | std::system(_cmd.c_str());
| ~~~~~~~~~~~^~~~~~~~~~~~~~
../qpicospeaker/src/texttospeech.cpp: In member function ‘void TextToSpeech::createAudio()’:
../qpicospeaker/src/texttospeech.cpp:152:24: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
152 | std::system(_cmd.c_str());
| ~~~~~~~~~~~^~~~~~~~~~~~~~
../qpicospeaker/src/texttospeech.cpp:158:24: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
158 | std::system(_cmd.c_str());
| ~~~~~~~~~~~^~~~~~~~~~~~~~
../qpicospeaker/src/texttospeech.cpp: In member function ‘void TextToSpeech::setSpeedAndPitch()’:
../qpicospeaker/src/texttospeech.cpp:165:16: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
165 | std::system(_cmd.c_str());
| ~~~~~~~~~~~^~~~~~~~~~~~~~
make: *** [Makefile:848: texttospeech.o] Error 1
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().
Aborting...
-> error making: qpicospeaker-git-exit status 4

Speed, Volume, and Pitch sliders are broken

I am not sure why you thought rolling your own was a good idea, as they are now broken.

I am running latest patchlevel of Arch Linux.

The pitch slider controls the volume, and volumne and speed do absolutely nothing.

Just make this easier on everyone and just use normal slider controls:

$ pacman -Q qpicospeaker-git
qpicospeaker-git r60.7429077-1
$ pacman -Q qt5-base
qt5-base 5.14.1-4
$ pacman -Q qt5-multimedia
qt5-multimedia 5.14.1-1

Thanks!

I lost my voice with Covid-19. I needed a way to communicate. This app was just what I needed, thanks. Plz consider pull requests which seem to work well. Also, maybe mention you need https://github.com/Shadowsith/qdocker. Google is the clearest and can be installed quickly with "python3 -m pip install gTTS" (Don't use apt) Thanks again.

Compiling failed

The compiling of the program failed with new Qt Version.
Need to fix this, also need to add features from >=C++14

Male english voices?

I've been waiting years for a desktop text-to-speech application for linux, and so far this looks very promising! However, I can't seem to find any documentation on svox, such as how to install more voices.

How launch app

Hi
I use Lubuntu. How do I launch your app?
Thank you!

App does not play or produce sound

Hi!

For some reason the app does nothing when I input text and try playing. No source shows up in pavucontrol either.

P. S Thank you for making app that will be a lifesavers for dyslexics like me

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.