21 Commits (master)

Author SHA1 Message Date
Martin Abente Lahaye 5de5116ea2 speech: Check if speech schema is present
The schema is provided by the sugar shell package and
in scenarios where that package is not present trying
to reference ends up in segfaults, e.g. flatpak apps.
4 years ago
James Cameron 15caa5478d Demote speech module utterance logging 5 years ago
Ibiam Chihurumnaya b74c3570d5 Fix NameError introduced by 23e664df05 5 years ago
James Cameron 23e664df05 sugar3.speech - expose player pipeline
Expose the GstSpeechPlayer pipeline so that the activities may add their
own handlers.

A quick way to get the rest of the gst-plugins-espeak signals available.
5 years ago
Ibiam Chihurumnaya 9a6c9ce69c sugar3.speech - expose mark messages
Mark messages can be used for text highlight.

Signed-off-by: James Cameron <quozl@laptop.org>
5 years ago
Pro-Panda aa8a5e70c4 Port from Python 2 to six
Signed-off-by: James Cameron <quozl@laptop.org>
5 years ago
Rahul Bothra 13a2282e5e Port from GObject to GLib 6 years ago
James Cameron 30139a3a9e sugar3.speech - remove GConf compatibility support 6 years ago
James Cameron 9722cfab1e wip; sugar3.speech - espeak-ng does not have default voice 7 years ago
James Cameron 7c2a2ba94a Fix sugar3.speech.SpeechManager get all translated voices
- fix method name,

- return translated voices,

- low impact; method not yet used in any of the most frequently used
  activities,

- old method name retained for compatibility just in case, but
  deprecate.
7 years ago
James Cameron f3f22ad124 Remove message, best voice for LANG 7 years ago
James Cameron c26c902dc7 Remove Python GI API version warnings
- reported in Clock-19 testing.
7 years ago
leonardcj 1b9da5b1d6 Update speech.py
Improve the i18n of speech strings with wiki links
8 years ago
Gonzalo Odiard fc4d629b50 TTS in the toolkit need initialize gstreamer - Fixes #4851
If is not initialized, the check for the espeak plugin will fail.
This patch also check for the espeak plugin at the beginnig
avoiding check every time the function enabled() is called.
9 years ago
Ignacio Rodríguez 47692f56f0 Log error when the espeak plugin is not installed.
Now when the espeak plugin is not installed there will be an
error (logging.error) in the log. Instead of the ugly message
of Gst
Also, if Gst isnt installed it debug a error too.

Fixes #3345
9 years ago
Gonzalo Odiard b78989b755 Add parameters to configure tts
Activities can set pitch, rate or voice used to play text to speech
10 years ago
Gonzalo Odiard 7b82eb6ae8 Add a structure to store the translated voice names 10 years ago
Gonzalo Odiard 44f9201e79 Initialize Gst before use speech
In sugar gst was initialized at startup, now we need initialize Gst
in the speech code.
10 years ago
Gonzalo Odiard 31d8de55a7 TTS: Cache the voices list 10 years ago
Gonzalo Odiard 57bd0890f5 Add a list of language names to translate
To display a list of translated language names in the UI,
we add a list of the available languages, because the espeak
language names are not translated.
10 years ago
Gonzalo Odiard d7c9645b60 Move SpeechManager from sugar to sugar-toolkit-gtk3
This is done to be able to use this implementation of the feature
in the activities. A complementary patch is needed in sugar module.
10 years ago