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 booleanscanFromFrontWhether we should scan the input string from the front.protected int[]transitionsThe transitions of this FSMprotected intvocabularySizeThe 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 booleanaccept(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.IOExceptionConstructs 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
-
-