Class
SpielSpeaker
since: 1.0
Description [src]
final class Spiel.Speaker : GObject.Object {
/* No available fields */
}
A virtual speaker for speech synthesis
The SpielSpeaker
class represents a single “individual” speaker. Its
primary method is spiel_speaker_speak()
which queues utterances to be spoken.
This class also provides a list of available voices provided by DBus speech providers that are activatable on the session bus.
SpielSpeaker
‘s initialization may perform blocking IO if it the first
instance in the process. The default constructor is asynchronous
(spiel_speaker_new()
), although there is a synchronous blocking
alternative (spiel_speaker_new_sync()
).
Available since: 1.0
Instance methods
spiel_speaker_cancel
Stops the current utterance from being spoken and dumps the utterance queue.
since: 1.0
spiel_speaker_pause
Pause the given speaker. If an utterance is being spoken, it will pause
until spiel_speaker_resume()
is called.
since: 1.0
spiel_speaker_speak
Speak the given utterance. If an utterance is already being spoken the provided utterances will be added to a queue and will be spoken in the order received.
since: 1.0
Methods inherited from GAsyncInitable (3)
g_async_initable_init_async
Starts asynchronous initialization of the object implementing the
interface. This must be done before any real use of the object after
initial construction. If the object also implements GInitable
you can
optionally call g_initable_init()
instead.
unstable since: 2.22
g_async_initable_init_finish
Finishes asynchronous initialization and returns the result. See g_async_initable_init_async().
unstable since: 2.22
g_async_initable_new_finish
Finishes the async construction for the various g_async_initable_new
calls, returning the created object or NULL
on error.
unstable since: 2.22
Methods inherited from GInitable (1)
Signals
Spiel.Speaker::range-started
Emitted when a range will be spoken in a given utterance. Not all voices are capable of notifying when a range will be spoken.
since: 1.0
Spiel.Speaker::sentence-started
Emitted when a sentence will be spoken in a given utterance. Not all voices are capable of notifying when a sentence will be spoken.
since: 1.0
Spiel.Speaker::utterance-canceled
Emitted when a given utterance has been canceled after it has started speaking.
since: 1.0
Spiel.Speaker::utterance-error
Emitted when a given utterance has failed to start or complete.
since: 1.0
Spiel.Speaker::utterance-started
Emitted when the given utterance is actively being spoken.
since: 1.0
Spiel.Speaker::word-started
Emitted when a word will be spoken in a given utterance. Not all voices are capable of notifying when a word will be spoken.
since: 1.0
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.