Codebase list sugar-read-activity / fa8777e
Remove speech related errors and warnings James Cameron authored 5 years ago Rahul Bothra committed 5 years ago
2 changed file(s) with 5 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
3030
3131 import gi
3232 gi.require_version('Gtk', '3.0')
33 gi.require_version('Gst', '1.0')
3334
3435 from gi.repository import GLib
3536 from gi.repository import GObject
2525 Gst.init(None)
2626 Gst.ElementFactory.make('espeak', None)
2727 from speech_gst import *
28 _logger.error('use gst-plugins-espeak')
28 _logger.debug('use gst-plugins-espeak')
2929 except Exception, e:
30 _logger.error('disable gst-plugins-espeak: %s' % e)
30 _logger.debug('disable gst-plugins-espeak: %s' % e)
3131 try:
3232 from speech_dispatcher import *
33 _logger.error('use speech-dispatcher')
33 _logger.debug('use speech-dispatcher')
3434 except Exception, e:
3535 supported = False
36 _logger.error('disable speech: %s' % e)
36 _logger.debug('disable speech: %s' % e)
3737
3838 voice = 'default'
3939 pitch = 0