inpro.sphinx.frontend
Class RtpRecvProcessor

java.lang.Object
  extended by edu.cmu.sphinx.util.props.ConfigurableAdapter
      extended by edu.cmu.sphinx.frontend.BaseDataProcessor
          extended by inpro.sphinx.frontend.RtpRecvProcessor
All Implemented Interfaces:
edu.cmu.sphinx.frontend.DataProcessor, edu.cmu.sphinx.util.props.Configurable

public class RtpRecvProcessor
extends edu.cmu.sphinx.frontend.BaseDataProcessor

our new implementation of an RTP reader using NIST JRtp , deprecates RTPDataSource

Author:
timo

Nested Class Summary
private  class RtpRecvProcessor.RtpHandler
           
 
Field Summary
static java.lang.String PROP_RTP_RECV_PORT
           
private  java.util.concurrent.BlockingQueue<edu.cmu.sphinx.frontend.Data> q
           
private  int recvPort
           
private  long sampleNumber
           
 
Fields inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter
logger
 
Constructor Summary
RtpRecvProcessor()
           
 
Method Summary
 edu.cmu.sphinx.frontend.Data getData()
           
 void initialize()
           
 void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
           
private  void resetFrameState()
           
 void setPredecessor(edu.cmu.sphinx.frontend.DataProcessor predecessor)
           
 
Methods inherited from class edu.cmu.sphinx.frontend.BaseDataProcessor
getPredecessor, getTimer
 
Methods inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter
getName, initLogger, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROP_RTP_RECV_PORT

@S4Integer(defaultValue=42000)
public static final java.lang.String PROP_RTP_RECV_PORT
See Also:
Constant Field Values

recvPort

private int recvPort

q

private java.util.concurrent.BlockingQueue<edu.cmu.sphinx.frontend.Data> q

sampleNumber

private long sampleNumber
Constructor Detail

RtpRecvProcessor

public RtpRecvProcessor()
Method Detail

resetFrameState

private void resetFrameState()

getData

public edu.cmu.sphinx.frontend.Data getData()
                                     throws edu.cmu.sphinx.frontend.DataProcessingException
Specified by:
getData in interface edu.cmu.sphinx.frontend.DataProcessor
Specified by:
getData in class edu.cmu.sphinx.frontend.BaseDataProcessor
Throws:
edu.cmu.sphinx.frontend.DataProcessingException

initialize

public void initialize()
Specified by:
initialize in interface edu.cmu.sphinx.frontend.DataProcessor
Overrides:
initialize in class edu.cmu.sphinx.frontend.BaseDataProcessor

setPredecessor

public void setPredecessor(edu.cmu.sphinx.frontend.DataProcessor predecessor)
Specified by:
setPredecessor in interface edu.cmu.sphinx.frontend.DataProcessor
Overrides:
setPredecessor in class edu.cmu.sphinx.frontend.BaseDataProcessor

newProperties

public void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
                   throws edu.cmu.sphinx.util.props.PropertyException
Specified by:
newProperties in interface edu.cmu.sphinx.util.props.Configurable
Overrides:
newProperties in class edu.cmu.sphinx.util.props.ConfigurableAdapter
Throws:
edu.cmu.sphinx.util.props.PropertyException