Package com.sun.speech.freetts.en.us
Class PronounceableFSM
- java.lang.Object
-
- com.sun.speech.freetts.en.us.PronounceableFSM
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
scanFromFront
Whether we should scan the input string from the front.protected int[]
transitions
The transitions of this FSMprotected int
vocabularySize
The vocabulary size.
-
Constructor Summary
Constructors Constructor Description PronounceableFSM(int vocabularySize, int[] transitions, boolean scanFromFront)
Constructs a PronounceableFSM with the given attributes.PronounceableFSM(java.net.URL url, boolean scanFromFront)
Constructs a PronounceableFSM with information in the given URL.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(java.lang.String inputString)
Checks to see if this finite state machine accepts the given input string.
-
-
-
Constructor Detail
-
PronounceableFSM
public PronounceableFSM(java.net.URL url, boolean scanFromFront) throws java.io.IOException
Constructs a PronounceableFSM with information in the given URL.- Parameters:
url
- the URL that contains the FSM specificationscanFromFront
- indicates whether this FSM should scan the input string from the front, or from the back- Throws:
java.io.IOException
-
PronounceableFSM
public PronounceableFSM(int vocabularySize, int[] transitions, boolean scanFromFront)
Constructs a PronounceableFSM with the given attributes.- Parameters:
vocabularySize
- the vocabulary size of the FSMtransitions
- the transitions of the FSMscanFromFront
- indicates whether this FSM should scan the input string from the front, or from the back
-
-