Struct xpcom::interfaces::nsISynthVoiceRegistry [] [src]

#[repr(C)]
pub struct nsISynthVoiceRegistry { /* fields omitted */ }

interface nsISynthVoiceRegistry : nsISupports

Methods

impl nsISynthVoiceRegistry
[src]

[src]

Cast this nsISynthVoiceRegistry to one of its base interfaces.

impl nsISynthVoiceRegistry
[src]

[src]

/**
   * Register a speech synthesis voice.
   *
   * @param aService          the service that provides this voice.
   * @param aUri              a unique identifier for this voice.
   * @param aName             human-readable name for this voice.
   * @param aLang             a BCP 47 language tag.
   * @param aLocalService     true if service does not require network.
   * @param aQueuesUtterances true if voice only speaks one utterance at a time
   */

void addVoice (in nsISpeechService aService, in DOMString aUri, in DOMString aName, in DOMString aLang, in boolean aLocalService, in boolean aQueuesUtterances);

[src]

/**
   * Remove a speech synthesis voice.
   *
   * @param aService the service that was used to add the voice.
   * @param aUri     a unique identifier of an existing voice.
   */

void removeVoice (in nsISpeechService aService, in DOMString aUri);

[src]

/**
   * Notify content of voice availability changes. This allows content
   * to be notified of voice catalog changes in real time.
   */

void notifyVoicesChanged ();

[src]

/**
   * Set a voice as default.
   *
   * @param aUri       a unique identifier of an existing voice.
   * @param aIsDefault true if this voice should be toggled as default.
   */

void setDefaultVoice (in DOMString aUri, in boolean aIsDefault);

[src]

readonly attribute uint32_t voiceCount;

[src]

AString getVoice (in uint32_t aIndex);

[src]

bool isDefaultVoice (in DOMString aUri);

[src]

bool isLocalVoice (in DOMString aUri);

[src]

AString getVoiceLang (in DOMString aUri);

[src]

AString getVoiceName (in DOMString aUri);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsISynthVoiceRegistry
[src]

IID: nsIID = nsID(1568279352, 30693, 20197, [137, 124, 206, 93, 185, 184, 93, 68])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsISynthVoiceRegistry
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsISynthVoiceRegistry
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.