public class PipedAudioStream
extends java.lang.Object
avconv -decoders | grep -E "^A" | sort A... 8svx_exp 8SVX exponential A... 8svx_fib 8SVX fibonacci A... aac AAC (Advanced Audio Coding) A... aac_latm AAC LATM (Advanced Audio Coding LATM syntax) ...
Constructor and Description |
---|
PipedAudioStream(java.lang.String resource) |
Modifier and Type | Method and Description |
---|---|
TarsosDSPAudioInputStream |
getMonoStream(int targetSampleRate,
double startTimeOffset)
Return a one channel, signed PCM stream of audio of a defined sample rate.
|
TarsosDSPAudioInputStream |
getMonoStream(int targetSampleRate,
double startTimeOffset,
double numberOfSeconds)
Return a one channel, signed PCM stream of audio of a defined sample rate.
|
static void |
setDecoder(PipeDecoder decoder) |
public static void setDecoder(PipeDecoder decoder)
public TarsosDSPAudioInputStream getMonoStream(int targetSampleRate, double startTimeOffset)
targetSampleRate
- The target sample stream.startTimeOffset
- The start time offset.public TarsosDSPAudioInputStream getMonoStream(int targetSampleRate, double startTimeOffset, double numberOfSeconds)
targetSampleRate
- The target sample stream.startTimeOffset
- The start time offset.numberOfSeconds
- the number of seconds to pipe. If negative the stream is processed until end of stream.