|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rococoa.contrib.AbstractPropertyDictionary<NSSpeechDictionary.SpeechDictionaryProperty>
org.rococoa.contrib.appkit.NSSpeechDictionary
public class NSSpeechDictionary
NSVoice encapsulates the properties of a speech synthesis dictionary, and can be used with NSSpeechSynthesizer to change the way words are pronounced. Dictionaries contain lists of entries that define how a given word or abbreviation should be pronounced. This class is a Rococoa enhancment designed to make it easier to work with speech dictionaries, there is no actual class with this name in Cocoa.
Nested Class Summary | |
---|---|
static class |
NSSpeechDictionary.Entry
Represents a dictionary entry. |
static class |
NSSpeechDictionary.SpeechDictionaryProperty
Defines the properties of a speech dictionary |
Constructor Summary | |
---|---|
NSSpeechDictionary()
Construct a new empty speech dictionary |
|
NSSpeechDictionary(NSMutableDictionary data)
Construct a new SpecchDictionary from existing data |
Method Summary | |
---|---|
void |
addAbbreviation(NSSpeechDictionary.Entry abbreviation)
|
void |
addPronounciation(NSSpeechDictionary.Entry pronounciation)
|
List<NSSpeechDictionary.Entry> |
getAbbreviations()
|
Locale |
getLocaleIdentifier()
Get the Locale associated with this dictionary |
Date |
getModificationDate()
|
List<NSSpeechDictionary.Entry> |
getPronunciations()
|
void |
setAbbreviations(List<NSSpeechDictionary.Entry> abbreviations)
|
void |
setLocaleIdentifier(Locale localeIdentifier)
|
void |
setModificationDate(Date modificationDate)
|
void |
setPronunciations(List<NSSpeechDictionary.Entry> pronounciations)
|
String |
toString()
|
Methods inherited from class org.rococoa.contrib.AbstractPropertyDictionary |
---|
getBoolean, getData, getDate, getEnum, getInt, getShort, getString, getValueAsType, setDate, setString, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NSSpeechDictionary()
public NSSpeechDictionary(NSMutableDictionary data)
data
- used to initialize the speech dictionary, must contain valid keys and values for a speech dictionaryMethod Detail |
---|
public Locale getLocaleIdentifier()
public void setLocaleIdentifier(Locale localeIdentifier)
public Date getModificationDate()
public void setModificationDate(Date modificationDate)
public List<NSSpeechDictionary.Entry> getPronunciations()
public void setPronunciations(List<NSSpeechDictionary.Entry> pronounciations)
public void addPronounciation(NSSpeechDictionary.Entry pronounciation)
public List<NSSpeechDictionary.Entry> getAbbreviations()
public void setAbbreviations(List<NSSpeechDictionary.Entry> abbreviations)
public void addAbbreviation(NSSpeechDictionary.Entry abbreviation)
public String toString()
toString
in class AbstractPropertyDictionary<NSSpeechDictionary.SpeechDictionaryProperty>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |