Activity Team/gst-plugins-espeak: Difference between revisions
| 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 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 | ||