public class Mary4To5VoiceConverter extends Object
Constructor and Description |
---|
Mary4To5VoiceConverter(List<VoiceComponentDescription> voiceDescriptions,
File voiceZip) |
Modifier and Type | Method and Description |
---|---|
void |
convertGvBinaryFile(File gvInFile)
Converts file format from gv Mary format 4 to Mary 5, the converted file will have the same input name
|
void |
convertPdfBinaryFile(File pdfInFile)
Converts format from pdf Mary format 4 to Mary 5, the converted file will have the same input name
|
protected String |
getPropertyPrefix() |
protected String |
getVoiceName() |
protected boolean |
isUnitSelectionVoice()
Returns true for a unit selection voice, false for an HMM-based voice.
|
protected void |
loadConfig(File configFile) |
protected void |
loadConfigFromStream(InputStream in) |
static void |
main(String[] args) |
protected void |
saveConfig(File configFile) |
protected void |
saveConfigToStream(OutputStream out) |
protected void |
updateConfig(String packageName) |
public Mary4To5VoiceConverter(List<VoiceComponentDescription> voiceDescriptions, File voiceZip)
protected void saveConfig(File configFile) throws IOException
IOException
protected void saveConfigToStream(OutputStream out) throws IOException
IOException
protected void updateConfig(String packageName)
protected void loadConfig(File configFile) throws IOException
IOException
protected void loadConfigFromStream(InputStream in) throws IOException
IOException
protected boolean isUnitSelectionVoice() throws UnsupportedOperationException
UnsupportedOperationException
- if the voice is neither a unit selection nor an HMM-based voice.protected String getVoiceName()
protected String getPropertyPrefix()
public void convertPdfBinaryFile(File pdfInFile) throws Exception
pdfInFile
- pdfInFileException
- Exceptionpublic void convertGvBinaryFile(File gvInFile) throws IOException
gvInFile
- gvInFileIOException
- IOExceptionpublic static void main(String[] args)
Copyright © 2000–2016 DFKI GmbH. All rights reserved.