|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ucsb.nmsl.autocap.AutoCaptioner
public class AutoCaptioner
This class contains all the logic for AutoCap. AutoCap is an application for the automatic alignment of a segmented transcript with a video for the purpose of providing captions. This class implements the needed event handlers for the Sphinx Speech recognition system for the first process AutoCaptioner the aligns the recognized with the text from the input transcript. After this alignment phase is complete it is necessary to estimate the time-stamps for all captions for which the first word was not recognized. Estimation is accomplished during the estimation phase.
Field Summary | |
---|---|
(package private) CaptionAligner |
aligner
The CaptionAligner instance that will align all the captions with the in put video. |
(package private) boolean |
transcribeOnly
Indicates whether alignment is done, or just transcription. |
Constructor Summary | |
---|---|
AutoCaptioner()
This default constructor creates a default instance of AutoCaptioner. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
This method is the main method for running the AutoCap application. |
void |
reportResearchStatistics(Transcript t)
This method reports the statistics used for research. |
void |
reportStatistics(Transcript t)
This method reports the statistics used for the user interface. |
void |
setTranscribeOnly(boolean t)
This method is used to set parameter transcribeOnly. |
void |
start(java.lang.String media,
java.lang.String xml)
This method is called from main to start recognizing a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
CaptionAligner aligner
boolean transcribeOnly
Constructor Detail |
---|
public AutoCaptioner()
Method Detail |
---|
public void setTranscribeOnly(boolean t)
t
- - Boolean indicating whether to turn of transcriptionOnly or not.public void start(java.lang.String media, java.lang.String xml)
media
- The file location of the media that is to be aligned with its
transcript.xml
- The XML file containing the transcript. See the documentation
for the class QADTranscriptFileWriter for details on the file
format for captions used in AutoCap.public void reportResearchStatistics(Transcript t)
t
- The input transcript of the audio portion of the input video.public void reportStatistics(Transcript t)
t
- The input transcript of the audio portion of the input video.public static void main(java.lang.String[] args)
args
- Array of strings passed from the command line. args[0] contains
the name of the media file that contains human speeh. args[1]
the name of the XML file that contains the transcript.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |