sugar3.speech module

class sugar3.speech.GstSpeechPlayer

Bases: gi.overrides.GObject.Object

get_all_translated_voices()
get_all_voices()
get_default_voice()

Try to figure out the default voice, from the current locale ($LANG) Fall back to espeak’s voice called Default.

make_pipeline(command)
pause_sound_device()
restart_sound_device()
speak(pitch, rate, voice_name, text)
stop_sound_device()
class sugar3.speech.SpeechManager(**kwargs)

Bases: gi.overrides.GObject.Object

MAX_PITCH = 100
MAX_RATE = 100
MIN_PITCH = -100
MIN_RATE = -100
do_get_property(pspec)
do_set_property(pspec, value)
enabled()
get_all_translated_voices()
get_all_traslated_voices()

deprecated after 0.112, due to method name spelling error

get_all_voices()
get_is_paused()
get_is_playing()
get_pitch()
get_rate()
is_paused
is_playing
pause()
restart()
restore()
save()
say_selected_text()
say_text(text, pitch=None, rate=None, lang_code=None)
set_pitch(pitch)
set_rate(rate)
stop()