public class Word extends GenericModel
SpeechToText
.Modifier and Type | Class and Description |
---|---|
static class |
Word.Sort
The Enum Sort to specify how words are to be sorted when listed.
|
static class |
Word.Type
The Enum Type to specify the type of words to be listed.
|
Constructor and Description |
---|
Word()
Instantiates a new empty word.
|
Word(java.lang.String word)
Instantiates a new word with a word name.
|
Word(java.lang.String word,
java.lang.String displayAs)
Instantiates a new word with a word name and a display-as value.
|
Word(java.lang.String word,
java.lang.String displayAs,
java.lang.String... soundsLike)
Instantiates a new word with a word name, a display-as value, and one or more sounds-like values.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplayAs()
Gets the spelling of the custom word that the service uses to display the word in a transcript.
|
java.util.List<java.lang.String> |
getSoundsLike()
Gets the sounds like.
|
java.lang.String |
getWord()
Gets the spelling of the word is used to train the model.
|
void |
setDisplayAs(java.lang.String displayAs)
Sets the spelling of the custom word that the service uses to display the word in a transcript.
|
void |
setSoundsLike(java.util.List<java.lang.String> soundsLike)
Sets the sounds like.
|
void |
setWord(java.lang.String word)
Sets the word.
|
equals, hashCode, toString
public Word()
public Word(java.lang.String word)
word
- The spelling of the custom word that the service uses to train the model.public Word(java.lang.String word, java.lang.String displayAs)
word
- The spelling of the custom word that the service uses to train the model.displayAs
- The spelling of the custom word that the service uses to display the word in a transcript.public Word(java.lang.String word, java.lang.String displayAs, java.lang.String... soundsLike)
word
- The spelling of the custom word that the service uses to train the model.displayAs
- The spelling of the custom word that the service uses to display the word in a transcript.soundsLike
- An array of pronunciations for the custom word.public java.lang.String getDisplayAs()
public java.util.List<java.lang.String> getSoundsLike()
public java.lang.String getWord()
public void setDisplayAs(java.lang.String displayAs)
displayAs
- The display_aspublic void setSoundsLike(java.util.List<java.lang.String> soundsLike)
soundsLike
- The sounds_likepublic void setWord(java.lang.String word)
word
- The word