@PSOperatorWrapper public class AudioOperators extends java.lang.Object
Constructor and Description |
---|
AudioOperators() |
Modifier and Type | Method and Description |
---|---|
static Function<Item,java.lang.Double> |
calcLoudness(java.lang.String audioDataField)
Calculate the average (RMS) loudness of the audio specified by an AudioData field.
|
static Function<Item,java.lang.Double> |
convertAmplitudeToLoudness(java.lang.String amplitudeField)
Calculate loudness (in decibels) based on an amplitude value.
|
static Function<Item,java.util.List<java.lang.Integer>> |
getAmplitudeSamples(java.lang.String audioDataField)
Get the amplitude samples of the audio specified by an AudioData field.
|
static Function<Item,java.lang.String> |
getFilepath(java.lang.String audioDataField)
Get the file path of the audio specified by an AudioData field.
|
static Function<Item,java.lang.Integer> |
getMaxAmplitude(java.lang.String audioDataField)
Get the max amplitude of the audio specified by an AudioData field.
|
static Function<Item,java.lang.Boolean> |
hasHumanVoice(java.lang.String audioDataField)
Detect human voice from the audio.
|
public static Function<Item,java.lang.Double> calcLoudness(java.lang.String audioDataField)
audioDataField
- the name of the AudioData field.public static Function<Item,java.lang.Integer> getMaxAmplitude(java.lang.String audioDataField)
audioDataField
- the name of the AudioData field.public static Function<Item,java.util.List<java.lang.Integer>> getAmplitudeSamples(java.lang.String audioDataField)
audioDataField
- the name of the AudioData field.public static Function<Item,java.lang.Double> convertAmplitudeToLoudness(java.lang.String amplitudeField)
amplitudeField
- the name of the amplitude field.public static Function<Item,java.lang.String> getFilepath(java.lang.String audioDataField)
audioDataField
- the name of AudioData field