Difference between revisions of "Activity Team/gst-plugins-espeak"
Jump to navigation
Jump to search
(→Usage) |
|||
Line 14: | Line 14: | ||
* '''voice''' use voice file of this name from espeak-data/voices | * '''voice''' use voice file of this name from espeak-data/voices | ||
* '''gap''' Word gap. Pause between words, units of 10mS at the default speed, default is 0 | * '''gap''' Word gap. Pause between words, units of 10mS at the default speed, default is 0 | ||
− | * '''trac''' track events | + | * '''trac''' track events |
** '''0''' do not track any events (default) | ** '''0''' do not track any events (default) | ||
− | ** '''1''' track word events | + | ** '''1''' track word events (see [[#Track words example]]) |
− | ** '''2''' track ''<mark name="<mark-name>"/>'' marks in text | + | ** '''2''' track ''<mark name="<mark-name>"/>'' marks in text (see [[#Track marks example]]) |
* '''voices''' read-only list of supported voices/languages | * '''voices''' read-only list of supported voices/languages | ||
* '''caps''' read-only caps describing the format of the data | * '''caps''' read-only caps describing the format of the data |
Revision as of 14:28, 9 March 2009
gst-plugins-espeak
eSpeak library as a sound source for GStreamer.
Plugin uses given text to produce audio output.
Interface
gst-plugins-espeak is a valid gstreamer plugin thus it is a GObject
Properties
GObject properties:
- text text to pronounce
- pitch pitch adjustment, -100 to 100, default is 0
- rate speed in words per minute, -100 to 100, default is 0
- voice use voice file of this name from espeak-data/voices
- gap Word gap. Pause between words, units of 10mS at the default speed, default is 0
- trac track events
- 0 do not track any events (default)
- 1 track word events (see #Track words example)
- 2 track <mark name="<mark-name>"/> marks in text (see #Track marks example)
- voices read-only list of supported voices/languages
- caps read-only caps describing the format of the data
Events
Gstreamer uses separate threads and user should use gst.Bus messages(are processed in main gtk thread) instead of native GObject events. To use messages you need to setup tract property. These are supported gst.Bus messages (see):
- espeak-word before speeching a word, message properties:
- offset offset in chars from beginning of text
- len size of word in chars
- espeak-mark mark in text, message properties:
- offset offset in chars from beginning of text
- mark name of mark
Usage
Plugin adds new URI scheme
gst-launch espeak://Hi ! autoaudiosink
Full pipline example:
gst-launch espeak text="Hello world" pitch=-50 rate=-50 voice=default ! autoaudiosink