Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Activity Team/gst-plugins-espeak
(view source)
Revision as of 15:43, 9 March 2009
398 bytes added
,
15:43, 9 March 2009
→Usage
Line 32:
Line 32:
=== Usage ===
=== Usage ===
+
+
==== Pipeline format ====
Plugin adds new URI scheme
Plugin adds new URI scheme
gst-launch espeak://Hi ! autoaudiosink
gst-launch espeak://Hi ! autoaudiosink
Line 38:
Line 40:
gst-launch espeak text="Hello world" pitch=-50 rate=-50 voice=default ! autoaudiosink
gst-launch espeak text="Hello world" pitch=-50 rate=-50 voice=default ! autoaudiosink
−
==== Simple
Python
example ====
+
==== Python examples ====
+
To use gst-plugins-espeak in Python:
+
* setup regular gstreamer envireonment
+
* plugin's name is ''espeak''
+
* all writable properties(including '''text''') make sense only at start playing; to apply new values you need to stop ''pipe.set_state(gst.STATE_NULL)'' pipe and start it again with new properties ''pipe.set_state(gst.STATE_PLAYING)''.
+
+
=
==== Simple example
=
====
import gtk
import gtk
Line 53:
Line 61:
gtk.main()
gtk.main()
−
==== Choir example ====
+
=
==== Choir example
=
====
import gtk
import gtk
Line 80:
Line 88:
gtk.main()
gtk.main()
−
==== Track words example ====
+
=
==== Track words example
=
====
import gtk
import gtk
Line 107:
Line 115:
gtk.main()
gtk.main()
−
==== Track marks example ====
+
=
==== Track marks example
=
====
import gtk
import gtk
Alsroot
Bots
,
Bureaucrats
,
Check users
,
Administrators
,
Widget editors
5,705
edits