nsISynthVoiceRegistry

Methods

addVoice(aService, aUri, aName, aLang, aLocalService)

Register a speech synthesis voice.

Parameters

aService the service that provides this voice.
aUri a unique identifier for this voice.
aName human-readable name for this voice.
aLang a BCP 47 language tag.
aLocalService true if service does not require network.

removeVoice(aService, aUri)

Remove a speech synthesis voice.

Parameters

aService the service that was used to add the voice.
aUri a unique identifier of an existing voice.

setDefaultVoice(aUri, aIsDefault)

Set a voice as default.

Parameters

aUri a unique identifier of an existing voice.
aIsDefault true if this voice should be toggled as default.

getVoice(aIndex)

isDefaultVoice(aUri)

isLocalVoice(aUri)

getVoiceLang(aUri)

getVoiceName(aUri)

Attributes

voiceCount