Speech Provider D-Bus Interface

A common interface for text-to-speech providers.

D-Bus services that implement this interface can provide speech synth to applications that use a client library, like libspiel.

For discoverability, the service’s known name must end with Speech.Provider. For example, org.espeak.Speech.Provider.

Properties

org.freedesktop.Speech.Provider:Voices

    Voices readable a(ssstas)

A list of voices the provider can use.

Each voice in the array is structure with the following members:

org.freedesktop.Speech.Provider:Name

    Name readable s

A localizable, human readable, name for this provider.

Methods

org.freedesktop.Speech.Provider.Synthesize

    Synthesize (
      IN pipe_fd h,
      IN text s,
      IN voice_id s,
      IN pitch d,
      IN rate d,
      IN is_ssml b,
      IN language s
    )

This is the basic synthesis method. When called, the speech provider will send the synthesized output to the given file descriptor. Depending on the voice’s advertised format it will be raw audio or composite audio and events.

Providers should be capable of synthesizing more than one request concurrently.