comirva.audio.extraction
Class MandelEllisExtractor
java.lang.Object
comirva.audio.extraction.AttributeExtractor
comirva.audio.extraction.AudioFeatureExtractor
comirva.audio.extraction.MandelEllisExtractor
public class MandelEllisExtractor
- extends AudioFeatureExtractor
Method Summary |
AudioFeature |
calculate(java.lang.Object input)
This method encapsulates the attribute extraction process. |
AttributeExtractor |
copy()
This method returns a copy of an AttributeExtractor. |
int |
getAttributeType()
Returns the type of the attribute that the class implementing this
interface will return as the result of its extraction process. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
skipIntroSeconds
public int skipIntroSeconds
skipFinalSeconds
public int skipFinalSeconds
minimumStreamLength
public int minimumStreamLength
MandelEllisExtractor
public MandelEllisExtractor()
MandelEllisExtractor
public MandelEllisExtractor(int skipIntro,
int skipEnd,
int minimumLength)
copy
public AttributeExtractor copy()
- Description copied from class:
AttributeExtractor
- This method returns a copy of an AttributeExtractor. This is useful to
use multiple extractors in parallel or distributed environments as AttributeExtractors can be stateful.
- Specified by:
copy
in class AttributeExtractor
- Returns:
calculate
public AudioFeature calculate(java.lang.Object input)
throws java.io.IOException,
java.lang.IllegalArgumentException
- Description copied from class:
AttributeExtractor
- This method encapsulates the attribute extraction process. The input
parameter is open, because of the very general design of
AttributeExtractor
and Attribute
. A concrete
class implementing this interface will however expect the input to be of
a certain type and will raise a IllegalArgumentException
, if
the passed argument is not of the expected type.
- Specified by:
calculate
in class AttributeExtractor
- Parameters:
input
- Object an object representing the input data to extract the
feature out of
- Returns:
- Feature a feature extracted from the input data
- Throws:
java.io.IOException
- failures due to io operations are signaled by
IOExceptions
java.lang.IllegalArgumentException
- raised if method contract is violated,
especially if the open input type is not
of the expected type
getAttributeType
public int getAttributeType()
- Description copied from class:
AttributeExtractor
- Returns the type of the attribute that the class implementing this
interface will return as the result of its extraction process. By
definition this is the hash code of the attribute's class name.
- Specified by:
getAttributeType
in class AttributeExtractor
- Returns:
- int an integer uniquely identifying the returned
Attribute
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object