Package de.dfki.lt.freetts.en.us
Class MbrolaVoiceValidator
- java.lang.Object
-
- de.dfki.lt.freetts.en.us.MbrolaVoiceValidator
-
- All Implemented Interfaces:
Validator
public class MbrolaVoiceValidator extends java.lang.Object implements Validator
Shows this MbrolaVoice is valid (or usable). It tests for the following:- Check that the "mbrola.base" System property is defined, and that directory exists.
- Check that the $(mbrola.base)/mbrola binary exists.
- Check that the transition table exists. It is assumed to be at $(mbrola.base)/us1/us1mrpa.
- Check that its voice database exists.
-
-
Constructor Summary
Constructors Constructor Description MbrolaVoiceValidator(MbrolaVoice mbrolaVoice)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
Returns the name of this validator.void
validate()
Validates this MbrolaVoice.
-
-
-
Constructor Detail
-
MbrolaVoiceValidator
public MbrolaVoiceValidator(MbrolaVoice mbrolaVoice)
-
-
Method Detail
-
validate
public void validate() throws ValidationException
Validates this MbrolaVoice.- Specified by:
validate
in interfaceValidator
- Throws:
ValidationException
- if this MbrolaVoice is invalid
-
toString
public java.lang.String toString()
Returns the name of this validator.- Overrides:
toString
in classjava.lang.Object
- Returns:
- the name of this validator
-
-