Package ca.phon.phontalk
Class Xml2PhonConverter
java.lang.Object
ca.phon.phontalk.Xml2PhonConverter
Reads in a talkbank XML file using SAX and
JAXB. Converts the file into a PhonBank v1.1 file.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
convertFile
(File inputFile, File outputFile, PhonTalkListener listener) Convert the given talkbank file and save as the given phone file.convertStream
(InputStream inputStream, PhonTalkListener listener) Convert the given steram into a session object.void
setInputFile
(File inputFile) void
setSettings
(Xml2PhonSettings settings)
-
Constructor Details
-
Xml2PhonConverter
public Xml2PhonConverter()
-
-
Method Details
-
getInputFile
-
setInputFile
-
getSettings
-
setSettings
-
convertStream
Convert the given steram into a session object.- Parameters:
inputStream
-listener
-- Returns:
- session
-
convertFile
Convert the given talkbank file and save as the given phone file.- Parameters:
inputFile
-outputFile
-listener
-
-