org.ow2.weblab.service.transcript.sphinx
Class SphinxTranscriptor

java.lang.Object
  extended by org.ow2.weblab.service.transcript.sphinx.SphinxTranscriptor

public class SphinxTranscriptor
extends java.lang.Object


Field Summary
protected  edu.cmu.sphinx.frontend.util.AudioFileDataSource audioFileDataSource
           
protected static org.apache.commons.logging.Log LOG
           
protected  edu.cmu.sphinx.recognizer.Recognizer recognizer
           
protected  java.lang.String xmlConfigPath
           
 
Constructor Summary
SphinxTranscriptor(java.lang.String xmlConfigPath)
          Initialise a sphinx transciptor using XML config file.
 
Method Summary
 java.lang.String toString()
           
 java.util.List<edu.cmu.sphinx.decoder.search.Token> transcript(java.io.File audioFile)
          Transcript an audio file into a list of Sphinx Token (to be able to retain any available information on the tokens)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

protected static org.apache.commons.logging.Log LOG

recognizer

protected edu.cmu.sphinx.recognizer.Recognizer recognizer

audioFileDataSource

protected edu.cmu.sphinx.frontend.util.AudioFileDataSource audioFileDataSource

xmlConfigPath

protected java.lang.String xmlConfigPath
Constructor Detail

SphinxTranscriptor

public SphinxTranscriptor(java.lang.String xmlConfigPath)
Initialise a sphinx transciptor using XML config file. Recognizer must be named 'recognizer' and AudioFileDataSource must be named 'audioFileDataSource'

Parameters:
xmlConfigPath -
Method Detail

transcript

public java.util.List<edu.cmu.sphinx.decoder.search.Token> transcript(java.io.File audioFile)
Transcript an audio file into a list of Sphinx Token (to be able to retain any available information on the tokens)

Parameters:
audioFile - the file to be transcript
Returns:
the list of Sphinx Token
Throws:
org.ow2.weblab.core.extended.exception.WebLabCheckedException - when unable to transcript something

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2011. All Rights Reserved.